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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Excel VBA in an Access module 1

Status
Not open for further replies.

BChumie

Programmer
Jan 11, 2002
130
US
Is it possible to run VB for excel in an Access module?

I am running office 97 - soon to be upgrading to 2000. Any advice would be greatly appreciated.

Brad
 
Sure, just open up Excel and tell it to run your macro

Dim tmpApp As New Excel.Application

tmpApp.Workbooks.Open FileName:="FileName", ReadOnly:=False, ignorereadonlyrecommended:=True
tmpApp.visible = True
tmpApp.Run "MacroName"

tmpApp.Close
Set tmpApp = Nothing Kyle [pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top