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

XL Macro

Status
Not open for further replies.

baronvont

Technical User
May 15, 2001
77
AU
Hi all,

I have a bit of code that exports data from Access to XL. Once there XL VBA code formats the data for me. At the moment I have to fire the macro from XL manually. Is there a command in Access VBA that will run an XL macro

Thanx
Georg
 
reference the excel libary

Sub sidneystrangelove()
Dim Xl as Object
Set XL = CreateObject("Excel.Application")

XL.Workbooks.Open "C:\temp\yourspreadsheet.xls"

XL.Run "modulename.yourmacro"


End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top