Opening specific folder clicking user defined button

S

sabtve

Hello.
In Word:
I have created a new button (copy of Open folder) with company logo in the
Standard menu.
How can I attach a macro which opens a spesific folder, containing the
templates I want the users to select?
(and if you please, What should the code be?)
(Windows XP under Win2000)

Thank you
Tom
 
J

Jezebel

You attach a macro by customising the toolbutton and selecting the macro.

There's no elegant way (that I know of) to display the FileNew dialog opened
at a specific folder. The cludgy way is --

SendKeys "^{TAB 3}", False
Dialogs(wdDialogFileNew).Show

Where the '3' is the number of ctrl-tab instructions you need to issue to
get from the General tab to the one you want. This will make distributing
the macro a problem, because the number of tabs may vary between users.
 
S

sabtve

Many thanks for your response, Jezebel.
Then I don't have to search for any OpenDir-option any more.
But: would it be possible, with your solution, to test the name of the Tab
posistioned to,
in my case "NDD", which is the folder in which the templates are located, to
know if it is
the right one?
Maybe I have made this more complicated then necesaay, but what I reallly
want is to give
the users as easy access to the new templates concerned as possible.
The templates work very nicely, with UserForms, Styles and all, but the
access problem......:-(.
Thank you for your effort.
Tom
 
J

Jezebel

I can't think of anyway to test the tab name using this method. Presumably
you could do it by looking in the Templates folders and checking the number
and names of sub-folders (and I think Word ignores sub-folders that don't
actually contain templates) ... from that you can work out what tabs there
will be. Seems to me like a lot of trouble for not much reward ...
 

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