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

Running Macro



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 5th 06, 02:00 PM posted to microsoft.public.outlook.program_forms
Sanjeev kumar Kodavalla
external usenet poster
 
Posts: 1
Default Running Macro

Hi,
I created a Macro in outlook 2003 by name "MacroTest"

in Form Code for a button click i want to run that macro....

I am writing form code in VB script ... not vba ...

code looks like this
---------------------------
Dim colInsp

Function Item_Open()
Set colInsp = Application.Inspectors
Call MacroTest
End Function
-----------------------

How to call a Macro from VB script code in outlook form

Can any one Help plz..
Ads
  #2  
Old March 5th 06, 05:56 PM posted to microsoft.public.outlook.program_forms
Hollis D. Paul
external usenet poster
 
Posts: 66
Default Running Macro

In article ,
=?Utf-8?B?U2FuamVldiBrdW1hciBLb2RhdmFsbGE=?= wrote:
How to call a Macro from VB script code in outlook form

Can any one Help plz..

The Macro must be in the ThisOutlook module, and you just use a call
statement in vbscript in the form code.

Hollis D. Paul [MVP - Outlook]
Mukilteo, WA USA



  #3  
Old March 5th 06, 07:24 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Running Macro

Like this:

Call Application.MacroTest

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Hollis D. Paul" wrote in message ...
In article ,
=?Utf-8?B?U2FuamVldiBrdW1hciBLb2RhdmFsbGE=?= wrote:
How to call a Macro from VB script code in outlook form

Can any one Help plz..

The Macro must be in the ThisOutlook module, and you just use a call
statement in vbscript in the form code.

Hollis D. Paul [MVP - Outlook]
Mukilteo, WA USA



 




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
Create a re-running rule JDR Outlook - General Queries 2 February 15th 06 09:17 PM
Running a macro SuperSlueth Outlook - Using Forms 15 February 7th 06 09:51 PM
How do I link a macro to a CommandButton in a custom form, want us Capone2377 Outlook - Using Forms 1 February 5th 06 12:15 AM
Macro to add an attachment Bear Outlook - Using Forms 1 February 3rd 06 04:57 AM
an outlook2000 macro programming question..... Alont Outlook - General Queries 0 January 8th 06 03:14 AM


All times are GMT +1. The time now is 03:33 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-2025 Outlook Banter.
The comments are property of their posters.