Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Group, Another novice question. When I open a file I use the following code. The first use of my spreadsheet always begins in a folder other than where the files are located. Once I navigate to the folder where my files are located, Excel remembers the path. Then each subsequent opening and Excel opens that folder. Is there a way to always open the folder where my spreadsheet is located? Assume my files are located in folder c:\MPI . fn2 = Application.GetOpenFilename("Current MPI File,*.mpi", 1, "Select NEW MPI File To Open", , False) Tony -- ajocius ------------------------------------------------------------------------ ajocius's Profile: http://www.excelforum.com/member.php...o&userid=17695 View this thread: http://www.excelforum.com/showthread...hreadid=470534 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the ChDir before the Application.GetOpenFilename dialog to set the
path......... e.g..... ChDir "C:\Nigel" fn2 = Application.GetOpenFilename("Current MPI File,*.mpi", 1, _ "Select NEW MPI File To Open", , False) -- Cheers Nigel "ajocius" wrote in message ... Group, Another novice question. When I open a file I use the following code. The first use of my spreadsheet always begins in a folder other than where the files are located. Once I navigate to the folder where my files are located, Excel remembers the path. Then each subsequent opening and Excel opens that folder. Is there a way to always open the folder where my spreadsheet is located? Assume my files are located in folder c:\MPI . fn2 = Application.GetOpenFilename("Current MPI File,*.mpi", 1, "Select NEW MPI File To Open", , False) Tony -- ajocius ------------------------------------------------------------------------ ajocius's Profile: http://www.excelforum.com/member.php...o&userid=17695 View this thread: http://www.excelforum.com/showthread...hreadid=470534 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe you must use ChDrive also
See how I use it here http://www.rondebruin.nl/copy3.htm It will restore the original path when it is done also -- Regards Ron de Bruin http://www.rondebruin.nl "Nigel" wrote in message ... Use the ChDir before the Application.GetOpenFilename dialog to set the path......... e.g..... ChDir "C:\Nigel" fn2 = Application.GetOpenFilename("Current MPI File,*.mpi", 1, _ "Select NEW MPI File To Open", , False) -- Cheers Nigel "ajocius" wrote in message ... Group, Another novice question. When I open a file I use the following code. The first use of my spreadsheet always begins in a folder other than where the files are located. Once I navigate to the folder where my files are located, Excel remembers the path. Then each subsequent opening and Excel opens that folder. Is there a way to always open the folder where my spreadsheet is located? Assume my files are located in folder c:\MPI . fn2 = Application.GetOpenFilename("Current MPI File,*.mpi", 1, "Select NEW MPI File To Open", , False) Tony -- ajocius ------------------------------------------------------------------------ ajocius's Profile: http://www.excelforum.com/member.php...o&userid=17695 View this thread: http://www.excelforum.com/showthread...hreadid=470534 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Gentlemen, I guess my fingers were typing faster than my brain engaged. But my application will sit on numerous engineers computers who are connected to a network and who have different paths to their respective Desktops. How am I able to open a folder from where my Excel file resides. I know I didn't explain the original post as clearly. Please ignore the c:\MPI. Tony -- ajocius ------------------------------------------------------------------------ ajocius's Profile: http://www.excelforum.com/member.php...o&userid=17695 View this thread: http://www.excelforum.com/showthread...hreadid=470534 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
See the code I use here
http://www.rondebruin.nl/copy3.htm#select Example 6 -- Regards Ron de Bruin http://www.rondebruin.nl "ajocius" wrote in message ... Gentlemen, I guess my fingers were typing faster than my brain engaged. But my application will sit on numerous engineers computers who are connected to a network and who have different paths to their respective Desktops. How am I able to open a folder from where my Excel file resides. I know I didn't explain the original post as clearly. Please ignore the c:\MPI. Tony -- ajocius ------------------------------------------------------------------------ ajocius's Profile: http://www.excelforum.com/member.php...o&userid=17695 View this thread: http://www.excelforum.com/showthread...hreadid=470534 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Identify the row in which a MAX number in a column resides | Excel Worksheet Functions | |||
VLOOKUP when a range resides in Column A | Excel Discussion (Misc queries) | |||
XL 2007: Pivot Refresh slow when data resides in another workbook | Excel Discussion (Misc queries) | |||
open file from folder save in new folder | Excel Programming | |||
Open files in folder - skip if already open | Excel Programming |