Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
excel 2002 runtime error 1004
Hi, I have a problem with this code, when open a file excel show an
error runtime 1004 on add method, Why ? Thanks for help private sub aprifile() Set EExcel = CreateObject("Excel.Application") Set EWorkbook = EExcel.Workbooks 'Apre File Excel Template Call EWorkbook.Add("p:\pubblica\procedure\modulistica\r ilevazione personale.xlt") EExcel.Visible = True end sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
excel 2002 runtime error 1004
Sounds like XL can't find your template file. Are you sure the path and
filename are correct? In article , xenod wrote: Hi, I have a problem with this code, when open a file excel show an error runtime 1004 on add method, Why ? Thanks for help private sub aprifile() Set EExcel = CreateObject("Excel.Application") Set EWorkbook = EExcel.Workbooks 'Apre File Excel Template Call EWorkbook.Add("p:\pubblica\procedure\modulistica\r ilevazione personale.xlt") EExcel.Visible = True end sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
excel 2002 runtime error 1004
|
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
excel 2002 runtime error 1004
xenod
How about: private sub aprifile() Set EExcel = CreateObject("Excel.Application") 'Apre File Excel Template Set EWorkbook =EExcel.Workbooks.Add("p:\pubblica\procedure\modul istica\rilevazione personale.xlt") EExcel.Visible = True end sub NickHK "xenod" wrote in message ... Hi, I have a problem with this code, when open a file excel show an error runtime 1004 on add method, Why ? Thanks for help private sub aprifile() Set EExcel = CreateObject("Excel.Application") Set EWorkbook = EExcel.Workbooks 'Apre File Excel Template Call EWorkbook.Add("p:\pubblica\procedure\modulistica\r ilevazione personale.xlt") EExcel.Visible = True end sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
excel chart export error runtime 1004 | Charts and Charting in Excel | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) | |||
Runtime error 1004 | Excel Programming | |||
Excel 2002 Data Forms runtime error 1004 | Excel Programming | |||
runtime error 1004 when opening excel file via VBA in a browser | Excel Programming |