Templates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like help in inserting a instruction set as a button type link. So all you see is the button and when you click on it the instruction file will come up. Does anyone have any ideas?
 
If you actually want it to be a separate file (perhaps for ease of editing)
you can record a macro opening the file. Make sure you are recording it in
your template rather than in Normal.dot. Once this is recorded, open the
customize dialog (double click in your toolbar area). If you already have a
custom toolbar you want to put your button on, make sure it is displayed.
Otherwise, create a new toolbar to hold your button. (You do _not_ want to
create your button on a built-in toolbar.)

Click on the Commands tab and scroll down to macros in the box on the left
side of the dialog box. Available macros will appear on the right side.
Select your macro and drag it to your custom toolbar. You can then
right-click on it to change the display to default. You may also want to
change the text for your command. You can also change or edit the icon
(button) image. When it is set the way you want, if you want to put it on a
built-in toolbar or menu, Ctrl-drag it to the built-in menu.

What follows is the command from such a macro after I edited it.

Documents.Open FileName:= _
"""C:\My Documents\Help\Help - how to write a letter.doc""", _
ConfirmConversions:=False, ReadOnly:=True, AddToRecentFiles:=False,
_
PasswordDocument:="", PasswordTemplate:="", Revert:=False, _
WritePasswordDocument:="", WritePasswordTemplate:="", Format:= _
wdOpenFormatAuto

This was edited from the recorded version in the vba Editor to delete the
line:
ChangeFileOpenDirectory "C:\My Documents\Help\"
(adding the directory to the filename in the File Open command) and
changing the ReadOnly property to "True."

Otherwise, if you don't want a separate file, and the text isn't too
extensive, you could use a vba message box containing your text.

MsgBox Prompt:= "This is a help box. " _
& "This is more help text.", _
Title:= "Here's the help you asked for!"

A much more extensive built-in help could be constructed using a multipage
userform but I'm not going to get into that here.

Hope this helps,

--

Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

MaryAnn said:
I would like help in inserting a instruction set as a button type link.
So all you see is the button and when you click on it the instruction file
will come up. Does anyone have any ideas?
 
Back
Top