Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2015, 05:12 AM
Lectrician Lectrician is offline Word 2007 - Template is on a missing share Windows 7 64bit Word 2007 - Template is on a missing share Office 2007
Novice
Word 2007 - Template is on a missing share
 
Join Date: Feb 2013
Posts: 19
Lectrician is on a distinguished road
Default

Code:
Sub AttachNormalNoStyles()
'
' Attach Normal Template without updating Styles
' written by Charles Kenyon 2015-09-27
' https://www.msofficeforums.com/word/28024-word-2007-template-missing-share.html
'
   With ActiveDocument
                  .UpdateStylesOnOpen = False
                  .AttachedTemplate = Application."\\server\share\template.dot"
   End With
End Sub
Sorry - So would this be correct?

Ant I would put this macro into the template itself?
Reply With Quote
  #2  
Old 09-29-2015, 09:12 AM
Charles Kenyon Charles Kenyon is offline Word 2007 - Template is on a missing share Windows 8 Word 2007 - Template is on a missing share Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,533
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by Lectrician View Post
Code:
Sub AttachNormalNoStyles()
'
' Attach Normal Template without updating Styles
' written by Charles Kenyon 2015-09-27
' https://www.msofficeforums.com/word/28024-word-2007-template-missing-share.html
'
   With ActiveDocument
                  .UpdateStylesOnOpen = False
                  .AttachedTemplate = Application."\\server\share\template.dot"
   End With
End Sub
Sorry - So would this be correct?

Ant I would put this macro into the template itself?
The expression "Application.NormalTemplate.FullName" returns a string.

Try:
Code:
.AttachedTemplate = "\\server\share\template.dot"
Put it in which template?

I would put it in a Global Template with either a QAT button and/or a keyboard shortcut to trigger it.
Reply With Quote
  #3  
Old 09-29-2015, 01:47 PM
Lectrician Lectrician is offline Word 2007 - Template is on a missing share Windows 7 64bit Word 2007 - Template is on a missing share Office 2007
Novice
Word 2007 - Template is on a missing share
 
Join Date: Feb 2013
Posts: 19
Lectrician is on a distinguished road
Default

Must admit, I am a little confused.

Which template to I add this to?

If I open a saved file which has the rouge missing template attached, this is when I have trouble. Would I need to add this macro to everyone of these files?

I open the files from windows explorer, not through file>open.

Does that make sense?

Thanks.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
New Template window in Word 2007 kerrk Word 1 10-14-2011 02:06 AM
Missing standard office tabs in ribbon for word 2007 pugs Word 5 09-23-2011 12:12 AM
Need help creating a word 2007 resume template gsw1 Word 0 09-27-2010 06:29 PM
How to share macros in Powerpoint 2007?? proshop PowerPoint 0 12-20-2009 07:29 AM
Editing Default Word 2007 Template nhrav Word 0 09-16-2008 05:08 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:08 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