Attach macro to a picture

S

Sue

Can I attach a macro that brings up a form to a logo(picture) istead of a
command button? If so, how? Thanks
 
S

Sue

I did get as far as having a picture on the button, but I wanted to not have
a button at all and just have the macro run from the club logo as this would
be a big improvement on the appearance of the merge.

Jay Freedman said:
Can I attach a macro that brings up a form to a logo(picture) istead of a
command button? If so, how? Thanks

Insert a MacroButton field
(http://www.word.mvps.org/FAQs/TblsFldsFms/UsingMacroButton.htm). In place of
the display text that would otherwise appear, paste in the picture.

That is, when the field code is displayed, it should look like

{ MACROBUTTON NameOfMacro [picture here] }


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

Doug Robbins - Word MVP

If you followed Jay's instructions, all you would see is the picture and
double clicking on it would run the macro.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Sue said:
I did get as far as having a picture on the button, but I wanted to not
have
a button at all and just have the macro run from the club logo as this
would
be a big improvement on the appearance of the merge.

Jay Freedman said:
Can I attach a macro that brings up a form to a logo(picture) istead of
a
command button? If so, how? Thanks

Insert a MacroButton field
(http://www.word.mvps.org/FAQs/TblsFldsFms/UsingMacroButton.htm). In
place of
the display text that would otherwise appear, paste in the picture.

That is, when the field code is displayed, it should look like

{ MACROBUTTON NameOfMacro [picture here] }


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

Sue

I have made progress but I still have not achieved my goal. For anyone else
doing the same thing I have a form which does quite a few things on commands.
I had it opened with a cmd click procedure. This it seems, was not a macro. I
now have a macro in the NewMacros Module which does the same thing ie has the
same line to open the form. Now I have followed the instructions and can
attach it to a picture, in my case the logo.

Unfortunately the picture can be sized but if I use the "layout" tab to
position it where I want it, which is where I have it when not attached to a
macro, it disappears when the field codes are not shown. This is my present
problem. The logo is beside the address and is as tall as the three address
lines. I can make it what I want using the "layout" tab but it disappears
with the field codes if I do.



Doug Robbins - Word MVP said:
If you followed Jay's instructions, all you would see is the picture and
double clicking on it would run the macro.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Sue said:
I did get as far as having a picture on the button, but I wanted to not
have
a button at all and just have the macro run from the club logo as this
would
be a big improvement on the appearance of the merge.

Jay Freedman said:
Can I attach a macro that brings up a form to a logo(picture) istead of
a
command button? If so, how? Thanks

Insert a MacroButton field
(http://www.word.mvps.org/FAQs/TblsFldsFms/UsingMacroButton.htm). In
place of
the display text that would otherwise appear, paste in the picture.

That is, when the field code is displayed, it should look like

{ MACROBUTTON NameOfMacro [picture here] }


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

Doug Robbins - Word MVP

The user of your form should have no reason to display the field codes.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Sue said:
I have made progress but I still have not achieved my goal. For anyone else
doing the same thing I have a form which does quite a few things on
commands.
I had it opened with a cmd click procedure. This it seems, was not a
macro. I
now have a macro in the NewMacros Module which does the same thing ie has
the
same line to open the form. Now I have followed the instructions and can
attach it to a picture, in my case the logo.

Unfortunately the picture can be sized but if I use the "layout" tab to
position it where I want it, which is where I have it when not attached to
a
macro, it disappears when the field codes are not shown. This is my
present
problem. The logo is beside the address and is as tall as the three
address
lines. I can make it what I want using the "layout" tab but it disappears
with the field codes if I do.



Doug Robbins - Word MVP said:
If you followed Jay's instructions, all you would see is the picture and
double clicking on it would run the macro.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Sue said:
I did get as far as having a picture on the button, but I wanted to not
have
a button at all and just have the macro run from the club logo as this
would
be a big improvement on the appearance of the merge.

:

On Mon, 13 Jul 2009 16:10:01 -0700, Sue
<[email protected]>
wrote:

Can I attach a macro that brings up a form to a logo(picture) istead
of
a
command button? If so, how? Thanks

Insert a MacroButton field
(http://www.word.mvps.org/FAQs/TblsFldsFms/UsingMacroButton.htm). In
place of
the display text that would otherwise appear, paste in the picture.

That is, when the field code is displayed, it should look like

{ MACROBUTTON NameOfMacro [picture here] }


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

Sue

I am sorry, I am not making myself clear. The logo must be visible at all
times because it is part of the letterhead and because I want it to be used
to open the form. Attaching the macro makes it invisible if the positioning
facility of the "layout" tab is used and it does have to be in the correct
place for the letterhead. I want the logo to show at all times (not just when
showing field codes which is irrelevant to the user.)

Doug Robbins - Word MVP said:
The user of your form should have no reason to display the field codes.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Sue said:
I have made progress but I still have not achieved my goal. For anyone else
doing the same thing I have a form which does quite a few things on
commands.
I had it opened with a cmd click procedure. This it seems, was not a
macro. I
now have a macro in the NewMacros Module which does the same thing ie has
the
same line to open the form. Now I have followed the instructions and can
attach it to a picture, in my case the logo.

Unfortunately the picture can be sized but if I use the "layout" tab to
position it where I want it, which is where I have it when not attached to
a
macro, it disappears when the field codes are not shown. This is my
present
problem. The logo is beside the address and is as tall as the three
address
lines. I can make it what I want using the "layout" tab but it disappears
with the field codes if I do.



Doug Robbins - Word MVP said:
If you followed Jay's instructions, all you would see is the picture and
double clicking on it would run the macro.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
I did get as far as having a picture on the button, but I wanted to not
have
a button at all and just have the macro run from the club logo as this
would
be a big improvement on the appearance of the merge.

:

On Mon, 13 Jul 2009 16:10:01 -0700, Sue
<[email protected]>
wrote:

Can I attach a macro that brings up a form to a logo(picture) istead
of
a
command button? If so, how? Thanks

Insert a MacroButton field
(http://www.word.mvps.org/FAQs/TblsFldsFms/UsingMacroButton.htm). In
place of
the display text that would otherwise appear, paste in the picture.

That is, when the field code is displayed, it should look like

{ MACROBUTTON NameOfMacro [picture here] }


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

.
 
D

Doug Robbins - Word MVP

Send me the form and I will take a look at it.

--
Hope this helps

Doug Robbins - Word MVP
Please reply only to the newsgroups unless you wish to avail yourself of my
services on a paid, professional basis.

Sue said:
I am sorry, I am not making myself clear. The logo must be visible at all
times because it is part of the letterhead and because I want it to be
used
to open the form. Attaching the macro makes it invisible if the
positioning
facility of the "layout" tab is used and it does have to be in the correct
place for the letterhead. I want the logo to show at all times (not just
when
showing field codes which is irrelevant to the user.)

Doug Robbins - Word MVP said:
The user of your form should have no reason to display the field codes.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Sue said:
I have made progress but I still have not achieved my goal. For anyone
else
doing the same thing I have a form which does quite a few things on
commands.
I had it opened with a cmd click procedure. This it seems, was not a
macro. I
now have a macro in the NewMacros Module which does the same thing ie
has
the
same line to open the form. Now I have followed the instructions and
can
attach it to a picture, in my case the logo.

Unfortunately the picture can be sized but if I use the "layout" tab
to
position it where I want it, which is where I have it when not attached
to
a
macro, it disappears when the field codes are not shown. This is my
present
problem. The logo is beside the address and is as tall as the three
address
lines. I can make it what I want using the "layout" tab but it
disappears
with the field codes if I do.



:

If you followed Jay's instructions, all you would see is the picture
and
double clicking on it would run the macro.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
I did get as far as having a picture on the button, but I wanted to
not
have
a button at all and just have the macro run from the club logo as
this
would
be a big improvement on the appearance of the merge.

:

On Mon, 13 Jul 2009 16:10:01 -0700, Sue
<[email protected]>
wrote:

Can I attach a macro that brings up a form to a logo(picture)
istead
of
a
command button? If so, how? Thanks

Insert a MacroButton field
(http://www.word.mvps.org/FAQs/TblsFldsFms/UsingMacroButton.htm).
In
place of
the display text that would otherwise appear, paste in the picture.

That is, when the field code is displayed, it should look like

{ MACROBUTTON NameOfMacro [picture here] }


--
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