| Report Inappropriate Content
This Forum is closed for replies.
||Re: Inserting Absolute Path into Textbox on Map using VBA
||Jan 20, 2010
||It's not a form control, it's just a text on the map in layout view. I tried the "Caption" property. Got the same error. Runtime error 424, Object Required.
I attached Screenshots of the Property box for the Text on the Map Layout, and a screenshot of the section of the map where the text is in map layout.
This is my first attempt at VBA in ESRI, so I'm probably doing it wrong but I can't find anything in the help menus or forums for using VBA to change a text box or whatever the formal name of this object is.
Public Sub AbsolutePathName()
Dim DocAbsPath As String
DocAbsPath = Application.Templates.Item(Application.Templates.Count - 1)
txtFQPath.Caption = DocAbsPath
MapScreenshot.gif (opens in new window)
Text property Box.gif (opens in new window)