A
Angie M.
Hi, I'm trying to create a new workbook based on a template in Excel, but I
want to run the code from a toolbar I have in Word (so I will click the
button in Word, Excel will open and create a new spreadsheet based on the
template). I have the following code, but I can't get it to work:
Sub Test()
Set myobject = CreateObject("Excel.Application")
myobject.workbooks.New(FileName:="P:\Dept\Firm Word Templates\Timetable\Rule
16 domestic.xlt")
End Sub
Can anybody help? Thanks
want to run the code from a toolbar I have in Word (so I will click the
button in Word, Excel will open and create a new spreadsheet based on the
template). I have the following code, but I can't get it to work:
Sub Test()
Set myobject = CreateObject("Excel.Application")
myobject.workbooks.New(FileName:="P:\Dept\Firm Word Templates\Timetable\Rule
16 domestic.xlt")
End Sub
Can anybody help? Thanks