Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Need VBA assistance for Excel Open Dialogue Box

Good morning.

I need to figure out code that will simply change current directory to a set
directory and then show Excel's "Open" Diaglogue box. I am aware that I can
use an open command to open a certain file, but I don't want to do that,
just Excel's Open dialogue box. Any suggestions? Thanks

Cordially,

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need VBA assistance for Excel Open Dialogue Box

sPath = "C:\MyFolder"
chdrive sPath
chdir sPath
application.Dialogs(xlDialogOpen).Show


also look in excel vba help at Application.GetOpenfileName

--
Regards,
Tom Ogilvy



"Brent E" wrote in message
...
Good morning.

I need to figure out code that will simply change current directory to a

set
directory and then show Excel's "Open" Diaglogue box. I am aware that I

can
use an open command to open a certain file, but I don't want to do that,
just Excel's Open dialogue box. Any suggestions? Thanks

Cordially,



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Need VBA assistance for Excel Open Dialogue Box

Really cool. Thanks Tom.

"Tom Ogilvy" wrote:

sPath = "C:\MyFolder"
chdrive sPath
chdir sPath
application.Dialogs(xlDialogOpen).Show


also look in excel vba help at Application.GetOpenfileName

--
Regards,
Tom Ogilvy



"Brent E" wrote in message
...
Good morning.

I need to figure out code that will simply change current directory to a

set
directory and then show Excel's "Open" Diaglogue box. I am aware that I

can
use an open command to open a certain file, but I don't want to do that,
just Excel's Open dialogue box. Any suggestions? Thanks

Cordially,




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
Preview in Open Dialogue Juli Excel Discussion (Misc queries) 4 May 31st 07 09:21 PM
When i open excel on the start dialogue, it does not open. lemon8 Setting up and Configuration of Excel 1 December 14th 05 05:37 AM
Excel VERY slow to move between folders in OPEN dialogue box Jamie Furlong Excel Discussion (Misc queries) 6 September 3rd 05 09:47 AM
In Excel, a dialogue box comes up and says "unable to open file". GailS Excel Discussion (Misc queries) 0 August 17th 05 04:33 PM
Need VBA assistance for Excel Open Dialogue box Brent E Excel Discussion (Misc queries) 2 February 7th 05 07:41 PM


All times are GMT +1. The time now is 08:24 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"