Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub opensingleworkbook()
Workbooks.Open "C:\Documents and Settings\hprasadh\Desktop\ABC Format.xls" End Sub -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Hari" wrote in message ... Hi, I have a file named "ABC format" in the location "C:\Documents and Settings\hprasadh\Desktop". I want to open this file automatically. I wrote (rather pinched it from NG with some modification) the following as a module in a new workbook:- Sub opensingleworkbook() Workbooks("C:\Documents and Settings\hprasadh\Desktop\ABC Format").Open End Sub Im getting runtime error '9' : Subsript out of range. Please tell me how to overcome the same. (The file ABC format exists) Regards, Hari India |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a file named "ABC format" in the location "C:\Documents and Settings\hprasadh\Desktop". I want to open this file automatically. I wrote (rather pinched it from NG with some modification) the following as a module in a new workbook:- Sub opensingleworkbook() Workbooks("C:\Documents and Settings\hprasadh\Desktop\ABC Format").Open End Sub Im getting runtime error '9' : Subsript out of range. Please tell me how to overcome the same. (The file ABC format exists) Regards, Hari India |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This syntax might work better.
Troy Sub opensingleworkbook() Workbooks.Open "C:\Documents and Settings\hprasadh\Desktop\ABC Format" End Sub "Hari" wrote in message ... Hi, I have a file named "ABC format" in the location "C:\Documents and Settings\hprasadh\Desktop". I want to open this file automatically. I wrote (rather pinched it from NG with some modification) the following as a module in a new workbook:- Sub opensingleworkbook() Workbooks("C:\Documents and Settings\hprasadh\Desktop\ABC Format").Open End Sub Im getting runtime error '9' : Subsript out of range. Please tell me how to overcome the same. (The file ABC format exists) Regards, Hari India |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hari,
Compair this with your code. Workbooks.Open Filename:= _ "C:\Documents and Settings\MyName\My Documents\Odoms.xl HTH Charle -- Message posted from http://www.ExcelForum.com |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanx a lot Bob, Charles and Troy.
Im posing doubts after doubts and all of u have been very helpful in getting me across one bridge after another safely. Long live the Newsgroups ( I hope I learn to such a level that Im able to answer other's doubts very soon in the future.) Thanx again Regards, Hari India "Charles " wrote in message ... Hari, Compair this with your code. Workbooks.Open Filename:= _ "C:\Documents and Settings\MyName\My Documents\Odoms.xl HTH Charles --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I stop blank workbook from opening when opening an existing | Excel Discussion (Misc queries) | |||
merging single worksheet files into a single workbook | Excel Discussion (Misc queries) | |||
is it possible to use F9 to manually calculate in a single sheet or single workbook? | Excel Discussion (Misc queries) | |||
How to make the opening of a workbook conditional upon the opening of another workbook | Excel Programming | |||
How to make opening of workbook conditional of opening of another workbook | Excel Programming |