Displaying a macro button field code as an image

J

Joanne

Hello,
I put a field code next to a table that will run a macro to total the
results in the table. I was wondering if there's a way to display the field
code as a button or preferably an image rather than as text. I know I can
put it in the toolbar but I'd prefer to have it in the document. Thank you
for any help you can provide.
 
J

Jay Freedman

Hello,
I put a field code next to a table that will run a macro to total the
results in the table. I was wondering if there's a way to display the field
code as a button or preferably an image rather than as text. I know I can
put it in the toolbar but I'd prefer to have it in the document. Thank you
for any help you can provide.

Yes, you certainly can do that.

Instead of (or in addition to) placing any display text in the macrobutton field
code following the macro's name, use Insert > Picture > From File to insert any
graphic file:

{MacroButton MyMacro [insert picture here]}

If you just want to use text, you can make it look a bit like a button by
selecting the field, going to Format > Borders and Shading, and putting a box
border on the text (the Apply To box in the dialog should say "Text").
 
J

Joanne

Thank you very much! That's exactly what I needed.

Jay Freedman said:
Hello,
I put a field code next to a table that will run a macro to total the
results in the table. I was wondering if there's a way to display the field
code as a button or preferably an image rather than as text. I know I can
put it in the toolbar but I'd prefer to have it in the document. Thank you
for any help you can provide.

Yes, you certainly can do that.

Instead of (or in addition to) placing any display text in the macrobutton field
code following the macro's name, use Insert > Picture > From File to insert any
graphic file:

{MacroButton MyMacro [insert picture here]}

If you just want to use text, you can make it look a bit like a button by
selecting the field, going to Format > Borders and Shading, and putting a box
border on the text (the Apply To box in the dialog should say "Text").

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
 

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