Open / Save As Files

John McGraw

Board Regular
Joined
Feb 25, 2002
Messages
76
Is there a way to open/saveas files, in _VBA_ without specifying the name of the file in the code?

I mean, let the user browse the directories and choose whatever file he wants. The way open would work if you went to FILE|OPEN?

Thanks.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Whooops... Sorry!!

I did do a search to find if my question was answered, but didnt notice that thread!

Thanks,
John
 
Upvote 0
Follow up question:

Is there a way to specify the path that automatically comes up when you do a "GetOpenFileName"?

I've tried application.defaultpath, but that doesnt work.
 
Upvote 0
On 2002-03-19 22:35, John McGraw wrote:
Follow up question:

Is there a way to specify the path that automatically comes up when you do a "GetOpenFileName"?

I've tried application.defaultpath, but that doesnt work.

Use syntax;

ChDir "C:"

To change to the dir before calling getopen..
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top