LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Change directory before File-Open

H all,

I have list of files whose file names changes everyday, like :
filename_mmddyy.xls where they reside in a directory structure like:
\\server\root\YYYY\mm-yyyy\

I would like to direct Excel to go the specified directory and bring up the
File-Open dialog box and let the user select the file then allow the code to
continue after the right file is opened.

I am trying to eliminate the need for having the users to navigate to the
directory and select the file. I would like to navigate there first and
then let the users select the file. I tried using the ChDir command first
and then use the [Application.GetOpenFilename] command but it didnt go to
the right directory first. Can you share some suggestions? Thanks in
advance.


Ben

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change File Open default directory from My Documents Ben Setting up and Configuration of Excel 3 January 1st 21 12:42 PM
open file in current directory Tomo Excel Worksheet Functions 1 January 12th 08 12:04 AM
open file in current directory Tomo Excel Discussion (Misc queries) 1 January 11th 08 11:48 PM
Open file in directory Mike Excel Programming 2 February 20th 04 08:02 PM
How to retrieve the directory of the currently open file? Joepy Excel Programming 2 August 7th 03 03:02 PM


All times are GMT +1. The time now is 08:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"