george hart
Board Regular
- Joined
- Dec 4, 2008
- Messages
- 241
I need to open an excel file from word ("C:\Documents and Settings\HartG\My Documents\Dave Slater\Import.xls")
and then run a macro from the excel file called "DelTabs".
I have the code below that I tohught would open the excel file but it's not working...Any help on this would be most apreciated.
Dim oExcel As Excel.Application
Dim oWB As Workbook
Set oExcel = New Excel.Application
Set oWB = oExcel.Workbooks.Open("C:\Documents and Settings\HartG\My Documents\Dave Slater\Import.xls")
'Rest of code
End Sub
Many thanks in advance
and then run a macro from the excel file called "DelTabs".
I have the code below that I tohught would open the excel file but it's not working...Any help on this would be most apreciated.
Dim oExcel As Excel.Application
Dim oWB As Workbook
Set oExcel = New Excel.Application
Set oWB = oExcel.Workbooks.Open("C:\Documents and Settings\HartG\My Documents\Dave Slater\Import.xls")
'Rest of code
End Sub
Many thanks in advance