Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   How do I link a macro to a CommandButton in a custom form, want us (http://www.outlookbanter.com/outlook-using-forms/5563-how-do-i-link-macro.html)

Capone2377 February 4th 06 02:50 PM

How do I link a macro to a CommandButton in a custom form, want us
 
I am working on something similar Cybordelic and was wondering if you could
send me a link to the VBscript you got from microsoft.

Thanks,

"Cybordelic" wrote:

I would like to map a macro to a button in a custom form that I have
designed. I already have the vbscript, which I got off of the VBScript
section of the MS website, and it works just fine. The script asks the user
if they want to visit the conference booking site, and when they click on yes
it opens the appropriate page. I just can't seem to figure out how to map
the macro to a button, so that when a user clicks the button in the form they
are asked if they want to visit the site, when they click yes an IE browser
windows opens directly to our conference booking site. I am trying to do
this using a CommandButton that I have inserted into my form, which I got
from the controls toolbox.

I am new at this and perhaps I am be trying to do something that cannot be
done in Outlook 2000, but I am not sure. I seem to remember using a form
once that had a button built into it that opened a webpage.

Any advice is appreciated.

Please advise.

Thank-you,
Charles


Thaddaeus Parker February 5th 06 01:15 AM

How do I link a macro to a CommandButton in a custom form, want us
 
Use the OnAction function when you have captured the specific
commandbarbutton that you want. the OnAction format is usually in the form
of a text statement eg

commandBarButton.OnAction = "!" + someMacroName + "";

"Capone2377" wrote in message
...
I am working on something similar Cybordelic and was wondering if you could
send me a link to the VBscript you got from microsoft.

Thanks,

"Cybordelic" wrote:

I would like to map a macro to a button in a custom form that I have
designed. I already have the vbscript, which I got off of the VBScript
section of the MS website, and it works just fine. The script asks the
user
if they want to visit the conference booking site, and when they click on
yes
it opens the appropriate page. I just can't seem to figure out how to
map
the macro to a button, so that when a user clicks the button in the form
they
are asked if they want to visit the site, when they click yes an IE
browser
windows opens directly to our conference booking site. I am trying to do
this using a CommandButton that I have inserted into my form, which I got
from the controls toolbox.

I am new at this and perhaps I am be trying to do something that cannot
be
done in Outlook 2000, but I am not sure. I seem to remember using a form
once that had a button built into it that opened a webpage.

Any advice is appreciated.

Please advise.

Thank-you,
Charles





All times are GMT +1. The time now is 09:22 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com