Running an external Macro

  • Thread starter Thread starter brittonsm
  • Start date Start date
B

brittonsm

How do I get this to work?

Private Sub btnUpdateLifeCycle_Click()
Dim strMacro As String

strMacro = "\\arlfs03\shared\Engineering\ENG\BOM Archive\" & "'" &
"BOM_Macros.xls" & "'" & "!UPDATE_LIFECYCLE_SUMMARY"

Run (strMacro)

End Sub

I want to fire off a macro without having to open and close the
workbook containing the macro.
 
You have to open the workbook. The macro is data in a file - Excel
interprets it, makes it executable code and executes the code. To do this,
it has to open the workbook.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top