Try code from the Help file, just slightly edited:
Code:
Option Explicit
Sub Example_AddMtext()
' This example creates an MText object in model space
' and align it to bottom center
Dim MTextObj As AcadMText
Dim pickPt
Dim corner(0 To 2) As Double
Dim width As Double
Dim txtheight As Double
Dim text As String
pickPt = ThisDrawing.Utility.GetPoint(, vbCrLf & "Pick text position: ")
corner(0) = pickPt(0): corner(1) = pickPt(1): corner(2) = 0#
txtheight = ThisDrawing.GetVariable("textsize")
text = "This is the text String\Pfor the mtext Object"
width = Len(text) * txtheight * 0.875
'' Creates the mtext Object
Set MTextObj = ThisDrawing.ModelSpace.AddMText(corner, width, text)
'' align to bottom center
MTextObj.AttachmentPoint = acAttachmentPointBottomCenter
'' reset position
MTextObj.InsertionPoint = corner
Dim minExt As Variant
Dim maxExt As Variant
' Return the bounding box for the line and return the minimum
' and maximum extents of the box in the minExt and maxExt variables.
MTextObj.GetBoundingBox minExt, maxExt
width = maxExt(0) - minExt(0)
MTextObj.width = width
End Sub
~'J'~
Bookmarks