save as and open

ladbroke

Board Regular
Joined
Jun 2, 2006
Messages
175
Office Version
  1. 365
Platform
  1. Windows
What id like to do is to have an command button on a userform which once clicked, opened up the save as function.

Id like another command button that also opens up the open file function.

can someone please help with a formula for these two?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
to display saveas;

application.getsaveasfilename

to display open function;

application.getopenfilename
 
Upvote 0
i cant seem to get these to work..

i want to use command buttons.. how do i write them into the formula?
 
Upvote 0
i cant seem to get these to work..

i want to use command buttons.. how do i write them into the formula?
when you are using a command buttons, you're doing a macro program isn't it? so something like;

Code:
Private Sub CommandButton1_Click()
Application.GetSaveAsFilename
End Sub
Private Sub CommandButton2_Click()
Application.GetOpenFilename
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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