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 chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,459
Messages
6,124,947
Members
449,198
Latest member
MhammadishaqKhan

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