Saving an XLSM to an XLSX

Rscottq

New Member
Joined
Nov 22, 2021
Messages
19
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
I have looked at many different solutions and I am learning as I go. The ONLY vba I've been able to make work so far to even save with the date stamp is what I've written below. BUT I cannot for the life of me figure out where to put/write in the effort to save the file as an XLSX. I only need the Macro on the master which is a "revolving file" in that each day I clear the contents after results have been entered. I'm sure there's an easier way to do all that too...but baby steps.

Sub SaveThisDay()

ThisWorkbook.SaveAs ThisWorkbook.Path & "\" & "Learning-" & Format(Now, "yyyymmdd")

End Sub

I appreciate any assistance in advance.

Scott
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi & welcome to MrExcel.
How about
VBA Code:
Sub SaveThisDay()
   Application.DisplayAlerts = False
   ThisWorkbook.SaveAs ThisWorkbook.Path & "\" & "Learning-" & Format(Now, "yyyymmdd"), 51
   Application.DisplayAlerts = True
End Sub
 
Upvote 0
Hi & welcome to MrExcel.
How about
VBA Code:
Sub SaveThisDay()
   Application.DisplayAlerts = False
   ThisWorkbook.SaveAs ThisWorkbook.Path & "\" & "Learning-" & Format(Now, "yyyymmdd"), 51
   Application.DisplayAlerts = True
End Sub
Amazing!! Now to go from my testing and learning workbook to a real product. Then go along and learn how to write in "clear contents" after the SaveAs. I think I'm gonna like hanging out and learning here!
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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