Need VBA code for "Open Dialogue" box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good morning.

I am using an Access VBA module to control Excel and I need to figure out
code that can 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. I want dialogue box and
not specify a file. Any suggestions? Thanks

Cordially,
 
Hi,

chDir "c:\Here\Mummy"

application.dialogs("Open").show
workbooks.open Filename

Filename is the filename

Something like this. You have to specify the filename
property then

If you are game, you can steal my code from one of my
utilities: EasyText_Rev1.xls

at:
http://www.geocities.com/excelmarksway

The code is not password protected but you will have to
modify it to suit your needs.


- mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top