Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have an Access app that manipulates a spreadsheet. The spreadsheet
can be in one of several pre-defined formats. For each, i have recorded in Excel a macro that performs the necessary re-formatting. I have stored these as strings in a table. I want to: 1) based on user choice, create a spreadsheet in one of the possible formats, 2) open it and then play the appropriate macro My VBA code (in Access) looks like this: Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Set xlApp = New Excel.Application Set xlBook = xlApp.Workbooks.Open( ... Name of spreadsheet ... ) Now, if the text of the macro is in a string variable (call it strMacro), what do i call in the Excel object model to execute it ? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Disable running of SelectionChange macro when in another macro? | Excel Discussion (Misc queries) | |||
Macro buttons opening saved macro | Excel Discussion (Misc queries) | |||
disable user running macro from Tools Macro | Excel Discussion (Misc queries) | |||
Excel converts 9-digit string to sci. not. when saved as csv | Excel Discussion (Misc queries) | |||
Launch Macro in Access via Macro running in Excel??? | Excel Programming |