AddFromString Method (VBA Add-In Object Model)

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

Adds text to a module.

Syntax

object**.AddFromString**

The object placeholder is an object expression that evaluates to an object in the Applies To list.

Remarks

The AddFromString method inserts the text starting on the line preceding the first procedure in the module. If the module doesn't contain procedures, AddFromString places the text at the end of the module.