Save As Message Box

octord

New Member
Joined
Apr 12, 2010
Messages
16
I have the following macro:

Sub Save_As()
'
' Save_As Macro
'

Dim File_Name As String
Dim File_Path As String


File_Path = ThisWorkbook.Path & "\\server\pathname\"
File_Name = "Test - " & Format(Date, "MM.DD.YYYY") & ".xlsx"
Application.DisplayAlerts = False
ThisWorkbook.SaveAs Filename:=File_Path & File_Name, FileFormat:=51
Application.DisplayAlerts = True

End Sub

Is there a way to change the "\\server\pathname\" portion to prompt user with the save as message box to chose a different location to save file without getting the "cannot be save in macro-free" message box prompt?

Many, many thanks for all the advice and support you provide!!!

-O
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,949
Latest member
Dupuhini

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