From: Marco/Hyperlink Function on
Is there a way to make a Marco a hyperlink or button within a document in
Micosoft Word?

Or a hyperlink to follow a menu command.

My goal is to have a option (like a hyperlink or marco) within my document
to print only the page I am on in my document. For example, if someone one
wanted to print Section J, which my be several pages, there would be a
hyperlink function that would print only that scetion.
From: Jonathan West on

"Marco/Hyperlink Function"
<MarcoHyperlinkFunction(a)discussions.microsoft.com> wrote in message
news:8AB8511A-023E-4A29-888E-4D1C6483F234(a)microsoft.com...
> Is there a way to make a Marco a hyperlink or button within a document in
> Micosoft Word?
>
> Or a hyperlink to follow a menu command.
>
> My goal is to have a option (like a hyperlink or marco) within my document
> to print only the page I am on in my document. For example, if someone one
> wanted to print Section J, which my be several pages, there would be a
> hyperlink function that would print only that scetion.

Look up the MACROBUTTON field in Word's help.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup


From: Marco/Hyperlink Function on
Thank you Jonathan!

I read it, but I do not understand how to create this button. Could you
please help me better understand?
My understanding of it, is that I must make a macro command first, then some
how use a code to make that macro into a macrobution.

"Jonathan West" wrote:

>
> "Marco/Hyperlink Function"
> <MarcoHyperlinkFunction(a)discussions.microsoft.com> wrote in message
> news:8AB8511A-023E-4A29-888E-4D1C6483F234(a)microsoft.com...
> > Is there a way to make a Marco a hyperlink or button within a document in
> > Micosoft Word?
> >
> > Or a hyperlink to follow a menu command.
> >
> > My goal is to have a option (like a hyperlink or marco) within my document
> > to print only the page I am on in my document. For example, if someone one
> > wanted to print Section J, which my be several pages, there would be a
> > hyperlink function that would print only that scetion.
>
> Look up the MACROBUTTON field in Word's help.
>
>
> --
> Regards
> Jonathan West - Word MVP
> www.intelligentdocuments.co.uk
> Please reply to the newsgroup
>
>
>
From: Jonathan West on

"Marco/Hyperlink Function"
<MarcoHyperlinkFunction(a)discussions.microsoft.com> wrote in message
news:BC4ED2F1-4184-4425-B04A-805C3A59413F(a)microsoft.com...
> Thank you Jonathan!
>
> I read it, but I do not understand how to create this button. Could you
> please help me better understand?
> My understanding of it, is that I must make a macro command first, then
> some
> how use a code to make that macro into a macrobution.


Yes. Create your macro first.

If you're unsure how to do this, take a look at these articles which are
good starters for writing macros

Creating a macro with no programming experience using the recorder
http://www.word.mvps.org/FAQs/MacrosVBA/UsingRecorder.htm

Getting To Grips With VBA Basics In 15 Minutes
http://www.word.mvps.org/FAQs/MacrosVBA/VBABasicsIn15Mins.htm

What do I do with macros sent to me by other newsgroup readers to help me
out?
http://www.word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm


Once you have created your macro, insert a macrobutton field into the
document. Press Ctrl-F9 to create a pair of field braces { } and then type
between the braces to create a field looking like this

{ MACROBUTTON MacroName Text label for button }

where MacroName is the name of the macro you created, and the text following
is any text you want to be "clickable"

Then, with the cursor still within the field braces, press Shift-F9 to
change the view to "field result". Now, if you double-click on the
macrobutton field, the macro should run.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup