Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-11-2015, 08:36 PM
gmaxey gmaxey is offline How to share building block macros? Windows 7 32bit How to share building block macros? 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to share building block macros? 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

Other Forums: Access Forums

All times are GMT -7. The time now is 01:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft