G
Glen
I am having trouble running an Excel formatting macro from Access. I
have a command button in access which will automate the spreadsheet
creation. This spreadsheet must be formatted a specific way and the
macro for this is already written and saved in a file (BOM1.xls). I
want to have access create a new spreadsheet and automate the format
macro. My code errors out when trying to get this macro. I have tried
everything I could think of and find online. Below is a sample of the
current version of my code.
xlMac = "c:\Documents and Settings\gwelsh\desktop\Bill of
Material\BOM1.xls"
xlApp.UserControl = True
xlWs.Activate
xlApp.Run xlMac & "!" & "Get_Format"
So far, I have access create the new file and save it as BOM(x). Then
I try to get the macro to run on the new file. The error I keep
getting states that access cannot find the macro but I know it is at
this path. Any help would be greatly appreciated.
have a command button in access which will automate the spreadsheet
creation. This spreadsheet must be formatted a specific way and the
macro for this is already written and saved in a file (BOM1.xls). I
want to have access create a new spreadsheet and automate the format
macro. My code errors out when trying to get this macro. I have tried
everything I could think of and find online. Below is a sample of the
current version of my code.
xlMac = "c:\Documents and Settings\gwelsh\desktop\Bill of
Material\BOM1.xls"
xlApp.UserControl = True
xlWs.Activate
xlApp.Run xlMac & "!" & "Get_Format"
So far, I have access create the new file and save it as BOM(x). Then
I try to get the macro to run on the new file. The error I keep
getting states that access cannot find the macro but I know it is at
this path. Any help would be greatly appreciated.