Set a document to open hidden

Q

quartz

I am using Office 2003 on Windows XP.

In Excel, you can set up a file containing programs that runs "hidden" by
going to [Window] then [Hide] and save the file in the Visual Basic Editor.

How can I do this in Word?

Must it be done using VBA? If so, could someone please supply example code?

Thanks much in advance.
 
J

Jonathan West

place the template in Word's Startup folder. You can find the location of
the startup folder by going to Tools, Options, File Locations.

Any template placed in the Startup folder is automatically loaded as an
add-in when Word starts, making its macros & toolbars available to the user.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
Q

quartz

Jonathan,

Thanks for your reply. I saved the file as a regular file (.doc) and it
contains an Auto_Open program that loads a custom toolbar. I placed the file
in the startup folder, but now when I click the button on the toolbar, I get
an error message stating that the macro cannot be found.

I'm sure it is something I am doing wrong, but...???

Jonathan West said:
place the template in Word's Startup folder. You can find the location of
the startup folder by going to Tools, Options, File Locations.

Any template placed in the Startup folder is automatically loaded as an
add-in when Word starts, making its macros & toolbars available to the user.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org

quartz said:
I am using Office 2003 on Windows XP.

In Excel, you can set up a file containing programs that runs "hidden" by
going to [Window] then [Hide] and save the file in the Visual Basic
Editor.

How can I do this in Word?

Must it be done using VBA? If so, could someone please supply example
code?

Thanks much in advance.
 
J

Jonathan West

quartz said:
Jonathan,

Thanks for your reply. I saved the file as a regular file (.doc) and it
contains an Auto_Open program that loads a custom toolbar. I placed the
file
in the startup folder, but now when I click the button on the toolbar, I
get
an error message stating that the macro cannot be found.

I'm sure it is something I am doing wrong, but...???

take a look at this article, i think it will help explain things

Distributing macros to other users
http://www.word.mvps.org/FAQs/MacrosVBA/DistributeMacros.htm


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top