A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How do I link a macro to a CommandButton in a custom form, want us



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old February 5th 06, 01:15 AM posted to microsoft.public.outlook.program_forms
Thaddaeus Parker
external usenet poster
 
Posts: 17
Default 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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do set up a commandbutton on a customer form to open a web pag Sean McCloskey Outlook - Using Forms 3 February 1st 06 11:16 PM
Custom form Melbin Outlook - Using Forms 1 January 24th 06 01:17 PM
date fields - link the calander pop-up to a custom date field Tom Outlook - Using Forms 0 January 23rd 06 10:13 PM
I send an Outlook custom form, but a std. form displays? Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 08:41 PM
Cannot programmatically open custom message in custom form ms Outlook - Using Forms 1 January 20th 06 04:01 PM


All times are GMT +1. The time now is 09:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.