Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I
Could you tell me how can i write this line to tell to Excel to open the document "Doc" in volume where Excel actualy run? In this exemple "MYHARDDRIVE" Workbooks.Open Filename:="MYHARDDRIVE:Doc" Thank you! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Stéphane,
Workbooks.Open Filename:= Application.Path & "\" & "Doc" should do it -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Stéphane Simard" wrote in message ... I Could you tell me how can i write this line to tell to Excel to open the document "Doc" in volume where Excel actualy run? In this exemple "MYHARDDRIVE" Workbooks.Open Filename:="MYHARDDRIVE:Doc" Thank you! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This will be save "Doc" in the folder of the application, no?
Me i want save it on the root of the drive. in fact, i want know the name of actual drive. Thank you De*: "Bob Phillips" Groupes*: microsoft.public.excel.programming Date*: Tue, 10 Feb 2004 22:34:02 -0000 Objet*: Path Stéphane, Workbooks.Open Filename:= Application.Path & "\" & "Doc" should do it -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Stéphane Simard" wrote in message ... I Could you tell me how can i write this line to tell to Excel to open the document "Doc" in volume where Excel actualy run? In this exemple "MYHARDDRIVE" Workbooks.Open Filename:="MYHARDDRIVE:Doc" Thank you! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry old bean, didn't deduce that from your post. Try this instead
myHardDrive = Left(Application.Path,2) Workbooks.Open Filename:= myHardDrive & "\" & "Doc -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Stéphane Simard" wrote in message ... This will be save "Doc" in the folder of the application, no? Me i want save it on the root of the drive. in fact, i want know the name of actual drive. Thank you De : "Bob Phillips" Groupes : microsoft.public.excel.programming Date : Tue, 10 Feb 2004 22:34:02 -0000 Objet : Path Stéphane, Workbooks.Open Filename:= Application.Path & "\" & "Doc" should do it -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Stéphane Simard" wrote in message ... I Could you tell me how can i write this line to tell to Excel to open the document "Doc" in volume where Excel actualy run? In this exemple "MYHARDDRIVE" Workbooks.Open Filename:="MYHARDDRIVE:Doc" Thank you! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
File Path Too Long? Not Anymore! Check out Long Path Tool | Excel Discussion (Misc queries) | |||
http://CannotDeleteFile.net - Cannot Delete File? Try Long Path ToolFilename is too long? Computer Complaining Your Filename Is Too Long? TheLong Path Tool Can Help While most people can go about their businessblissfully unaware of the Windo | Excel Discussion (Misc queries) | |||
Formula too long - new file path is shorter than old file path - Excel 2003 | Excel Worksheet Functions | |||
hyperlink navigation path path wrong in Excel 2003 | Excel Discussion (Misc queries) | |||
how to change absolute path to relative path | Excel Worksheet Functions |