![]() |
|
|
|
#1
|
|||
|
|||
|
If the building buildingblocks are stored in the same template as the template contain the code use: ThisDocument.AttachtedTemplate.... |
|
#2
|
|||
|
|||
|
No it won't return the path. It thought you wanted to work with building blocks
Code:
Sub TT()
MsgBox ThisDocument.Name
MsgBox ThisDocument.FullName
MsgBox ThisDocument.Path
ThisDocument.AttachedTemplate.BuildingBlockEntries("Page X of Y").Insert Selection.Range
End Sub
ThisDocument. Me. The guy running your code. |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Custom Building Block File Locations
|
ptmuldoon | Word | 5 | 01-03-2015 08:45 AM |
| Using Building Block Gallery Content function on a form with restricted editing | wes228 | Word VBA | 1 | 08-28-2014 08:14 AM |
| how to make building block content control determine bb to display elsewhere | jamles12 | Word VBA | 5 | 11-16-2013 11:38 AM |
| Building blocks show correctly in dropdown, but wrong building block populates in doc | wordgirl123 | Word | 0 | 10-03-2013 08:30 AM |
| How to share macros in Powerpoint 2007?? | proshop | PowerPoint | 0 | 12-20-2009 07:29 AM |