Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 10-01-2015, 02:56 AM
macropod's Avatar
macropod macropod is offline Word 2007 - Template is on a missing share Windows 7 64bit Word 2007 - Template is on a missing share Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default


Quote:
Originally Posted by Lectrician View Post
They still take ages to open?
which only goes to show you haven't changed the template path/name.
Quote:
When I ran the small macro to display the existing template, I opened one of the documents. It took ages to load as usual, I assumed it would then change the template to the normal one automatically? Is this not why it displays as normal?
The fact the document can't find its template doesn't cause the document to revert to the normal template or the macro to display a template other than the one attached to it. Are you sure you had the correct document active when you ran the macro?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #17  
Old 10-01-2015, 06:49 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

Well I think I am doing it correctly :-/



I have added the macro into the document file name Q0340-Coppice.docx, and run it from that window.

It display "Normal" in the popup MSG box.

The file was created with a document template which should be \\SERVER\templates$\mytemplate.dotx. This path is no longer available, nor the template (although I have a copy of a slightly amended template which I am trying to attach, with the same filename.dotx.
Reply With Quote
  #18  
Old 10-01-2015, 07:08 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,138
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

A docx (or dotx) file cannot hold macros. You want to save the macro in a separate template. While you could save it in the normal template, there is no good reason to do so. If you save it in a separate Global Template, one stored in the Startup Folder, you will have access to it from any document.

You can attach a QAT icon or keyboard shortcut to the macro if you want. These should also be stored in the global template.
Reply With Quote
  #19  
Old 10-01-2015, 07:42 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

Umm. OK. I have created a template in the startup folder and run the macro from there.

Anything that was on the server is still showing up as "normal", but some older documents in the same folder are showing the path as "c:\templates which is where they used to be before moving to the server. Also, anything saved recently is showing up as "\\NEWSERVER\tempates", so the macro is working.

When I run the macro now, it cycles through the files, but doesn't seem to change anything when I check the files. The loop also ends early, near the end with an issue with the datestamp of the file by the looks of it.

I also notice some are template.dot, and some .dotx.

They are old files that I don't really need, but it is nice to be able to look back and open them. If you fancy a donation by Paypal, would you be interested in doing this for me?
Reply With Quote
  #20  
Old 10-01-2015, 01:50 PM
macropod's Avatar
macropod macropod is offline Word 2007 - Template is on a missing share Windows 7 64bit Word 2007 - Template is on a missing share Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Lectrician View Post
Anything that was on the server is still showing up as "normal", but some older documents in the same folder are showing the path as "c:\templates which is where they used to be before moving to the server.
Files that simply referenced 'normal' are unlikely to have needed a change, since they simply pick up whatever the current path to 'normal' is; it's only those that referenced a custom template, for which a file path will have been stored, that need changing - which is what the macro does.
Quote:
Also, anything saved recently is showing up as "\\NEWSERVER\tempates", so the macro is working.

When I run the macro now, it cycles through the files, but doesn't seem to change anything when I check the files.
These two statements seem mutually exclusive; either the macro changes something or it doesn't. As for document referencing a template in "c:\templates", those would only change if you used "c:\templates" as the old path - the macro only changes the one path you give it, not any others. In any event, since those files aren't referencing templates on a network share, I wouldn't expect to see any lag when opening them.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
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 04:57 PM.


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