View Single Post
 
Old 03-11-2015, 08:36 PM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

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
ActiveDocument. That's the guy with his mug on the screen.
ThisDocument. Me. The guy running your code.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote