Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Access function to run Outlook Macro

Status
Not open for further replies.

newcoder54

Technical User
Jul 2, 2002
46
US
Hi:

A need a function for Access 97 so when run will run a macro I created in Outlook XP - Thanks - Larry
 
i dont know how to do it with outlook.. but its sould be kinda that same as to run an excel macro via acces

thats how its can be done:

Dim objXL As Object
Set objXL = CreateObject("Excel.Application")

objXL.Application.Visible = True
objXL.Application.Workbooks.Open GetDBDir & "\" & "macro.xls"
objXL.Application.Run "macro.xls!formatage"
.....
objXL.Application.Workbooks("macro.xls").Close
Set objXL = Nothing


jb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top