Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening Files


Good morning all!

I am working on something that will allow a user to run differen
scerios and view the results. Once they have something that they wan
to explore further, they can export the results to a new workbook. I
they want to go back to an option that was previously exported, ther
is a button on one of the user forms that will call the open featur
and let the user select which which files to open.

My issue is that the Application.GetOpenFilename feature seems t
default to the last place that the user saved any excel file. Even i
it is a different from where this one is located. Is there a way t
control this? I want it to default to wherever this workbook is save
and let the user look there first.

Thanks in advance,
d

--
toocol
-----------------------------------------------------------------------
toocold's Profile: http://www.excelforum.com/member.php...fo&userid=3160
View this thread: http://www.excelforum.com/showthread.php?threadid=56609

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Opening Files

spath = curdir
Chdrive Thisworkbook.path
chdir Thisworkbook.Path
fname = Application.GetOpenFilename()

.. . .
chdrive spath
chdir = spath


--
Regards,
Tom Ogilvy


"toocold" wrote:


Good morning all!

I am working on something that will allow a user to run different
scerios and view the results. Once they have something that they want
to explore further, they can export the results to a new workbook. If
they want to go back to an option that was previously exported, there
is a button on one of the user forms that will call the open feature
and let the user select which which files to open.

My issue is that the Application.GetOpenFilename feature seems to
default to the last place that the user saved any excel file. Even if
it is a different from where this one is located. Is there a way to
control this? I want it to default to wherever this workbook is saved
and let the user look there first.

Thanks in advance,
dw


--
toocold
------------------------------------------------------------------------
toocold's Profile: http://www.excelforum.com/member.php...o&userid=31608
View this thread: http://www.excelforum.com/showthread...hreadid=566090


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Opening Files


Thanks Tom,

Nice and simple!
dw


--
toocold
------------------------------------------------------------------------
toocold's Profile: http://www.excelforum.com/member.php...o&userid=31608
View this thread: http://www.excelforum.com/showthread...hreadid=566090

Reply
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
show most recent files first when opening excel files Anne` Excel Discussion (Misc queries) 5 January 23rd 08 01:54 AM
Opening Quattro Pro for Windows files (*.WB1 Files) using Excel 20 PoundMutt Excel Discussion (Misc queries) 1 June 20th 07 03:50 AM
How can I view files chronologically when opening multiple files Stevilsize Excel Discussion (Misc queries) 3 July 26th 05 12:49 AM
Opening Files Using VBA [email protected] Excel Programming 1 April 13th 05 08:58 PM
Opening files steve Excel Programming 0 August 13th 03 06:12 PM


All times are GMT +1. The time now is 06:06 PM.

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

About Us

"It's about Microsoft Excel"