Merry Christmas!!
Thanks for all for the responses. The solutions are some what satisfying the requirement. Especially Graham's suggestion works out well.
The ultimate aim of mine is to
1. 'insist' myself to select a predefined template (I have 9 templates and I have to restrict myself to work ONLY on any of those templates. The templats are nothing but having few words in the footer to catogries the type of document - before opening a document. With AutoExe() macro, it is working fine but on 'cancel' in that dialog box, word opens a default page
2. While saving the document (includes all save techniques - Ctrl+S, File-Save, File-SaveAs, AutoSave etc.) should check for the documents footer. It should check whether the document is having footer (eg. Personal, official, etc - like this I have 9 categories). It should allow saving only when the footer is having any one of those text or else without saving the document, it should show an error message
Point No.1 can be implemented in some other way too. Like, while opening a word application, throw a dialog box where the 9 footer information (only the text information) can be listed (in a combo box - pull down selection bar) from there I need to select a footer text which should appear in the opened document as footer. Without selecting this I should be allowed to get into word
It would be very helpful if the relevant macros are provided
(I have placed this as a fresh query as well
Regards
K. Rajaseka
----- Graham Mayor wrote: ----
You are trying to reinvent the wheel. Put your templates in the use
template folder, uninstall any other templates that you are not intending t
use and add the following macro to normal.do
Sub AutoExec(
Dialogs(wdDialogFileNew).Sho
End Su
This will pop up the templates folder when you start Word to display you
choice of template - though frankly File > new does the job just as well
--
<>><><<>><<><>><><<><>><<>><><<
Graham Mayor - Word MV
E-mail (e-mail address removed)
Web site
www.gmayor.co
Word MVP web site
www.mvps.org/wor
<>><><<>><<><>><><<><>><<>><><<
K. Rajasekar wrote