Title Block and Border Attributes

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need some VBA code that will allow me to get the Filename from the border of a drawing. I've got code to get to the text of the filename, but I need to get the filename itself. Hope that males sense. Here's the code:
Public Sub GetModelFilename()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
Set oSheet = oDoc.ActiveSheet 'Msgbox oSheet.Size
Dim oSketch As DrawingSketch
Dim oBorder As BorderDefinition
Set oBorder = oDoc.BorderDefinitions.Item(2)
Call oBorder.Edit(oSketch)
Dim tempTB As TextBox
Dim i As String
For Each tempTB In oSketch.TextBoxes
'MsgBox tempTB.Text
If tempTB.Text = "<FILENAME>" Then
HERE IS WHERE I NEED HELP
i = tempTB.Text
MsgBox i
End If
Next
Call oBorder.ExitEdit(True)
What the code returns is the text <FILENAME>. What I need is the filename itself. Anyone? Thanx.