Joe Patrick
New Member
- Joined
- May 15, 2011
- Messages
- 44
Hi!
I could have sworn I had this working before but can't get it to work now! I need a macro from word to open an excel spreadsheet and run the Autpen macro. It opens the workbook but just stops there.
Can anyone help me with this? Thank you in advance!
Sub RunExcelMacroNOTWORKING()
Dim objExcel As Object
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.Workbook.Open "U:\TPCentral_Too\ADA_Requests\ADA_Requests.xls"
On Error Resume Next
Excel.Application.Run "U:\TPCentral_Too\ADA_Requests\ADA_Requests.xls!Autpen"
End Sub
I could have sworn I had this working before but can't get it to work now! I need a macro from word to open an excel spreadsheet and run the Autpen macro. It opens the workbook but just stops there.
Can anyone help me with this? Thank you in advance!
Sub RunExcelMacroNOTWORKING()
Dim objExcel As Object
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.Workbook.Open "U:\TPCentral_Too\ADA_Requests\ADA_Requests.xls"
On Error Resume Next
Excel.Application.Run "U:\TPCentral_Too\ADA_Requests\ADA_Requests.xls!Autpen"
End Sub