Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-06-2016, 02:28 AM
thmsrox thmsrox is offline Creating a (shared!) file with CommandButton placing AutoText into the document Windows 7 64bit Creating a (shared!) file with CommandButton placing AutoText into the document Office 2013
Novice
Creating a (shared!) file with CommandButton placing AutoText into the document
 
Join Date: Jul 2016
Posts: 3
thmsrox is on a distinguished road
Default Creating a (shared!) file with CommandButton placing AutoText into the document

Hi,

I've been trying to create a document with CommandButtons that once clicked write the AutoText programmed into them. This works perfectly locally, but not externally.
The main issue is that I don't want other users to have to get a copy of my "Normal.dotm" file every time since it's too much of a hassle with the amount of AutoText used. The idea was to put just one copy of my Normal.dotm on a shared drive over the network and to have the code pull out that file so users would never have to swap around files on their PCs.

Something like this;

Quote:
Private Sub CommandButton21_Click()


'
' Bio Macro
'
'
Application.Templates( _
"S:\Thomas\Normal.dotm"). _
BuildingBlockEntries("Bio").Insert Where:=Selection.Range, RichText:=True
End Sub
This however does not work.
The original code does.

Quote:
Private Sub CommandButton21_Click()
'
' Bio Macro
'
'
Application.Templates( _
"C:\Users\Thomas\AppData\Roaming\Microsoft\Templat es\Normal.dotm"). _
BuildingBlockEntries("Bio").Insert Where:=Selection.Range, RichText:=True
End Sub
Ideas / help would be appreciated.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoText List - Protected Document AJohn403 Word 3 04-20-2015 04:54 PM
Creating a (shared!) file with CommandButton placing AutoText into the document how to easily drop autotext into document Kendel Word 2 02-08-2015 09:50 AM
Creating a (shared!) file with CommandButton placing AutoText into the document I'm having trouble creating a Merge using label form and placing a shape in the text blockie Mail Merge 8 11-13-2013 11:28 PM
Creating a (shared!) file with CommandButton placing AutoText into the document Email Document via Commandbutton aqhibjaveed Word VBA 1 03-25-2013 11:22 PM
Creating a (shared!) file with CommandButton placing AutoText into the document Creating a shared template with selections gmsp26 Word 1 04-14-2011 05:18 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:56 PM.


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