vba save as

  1. C

    VBA to save AND save as using command button and display message box

    Hello, I am trying to get a workbook to save using a command button so I can get a weekly log of what has changed in the spreadsheet. I need the "master" spreadsheet to save AND a separate workbook saving with the filename of the date it was saved...I can't get the first bit to work, so it...
  2. M

    VB Save As non-Macro enabled workbook

    I have been running the same VB code for years and have not run into any errors where my macro enabled workbook performs a Save As, as a non-macro enabled workbook or xlsx. Now I get the error, "VB projects and XLM Sheets cannot be saved in a macro-free workbook." I cannot figure out what is...
  3. D

    VBA save as .xlsx

    Hi everyone, I am wondering how to open SaveAs dialog box so, that the saving file format would already be preselected as Excel Workbook (.xlsx), even if the original file has different extension. I can open SaveAs window with this code, but how to preselect the formatting...
  4. C

    VBA Save as on desktop with previous month's first and last dates

    Hi, Still beginner here. I've been trying to find the way with Google, but there are too many different response and none have worked for me so far. I need to save a file with this name(based on today being August 2022) to my desktop: "2022-07-01 to 2022-07-31 Consolidated file.xlsx" "The first...
  5. T

    VBA Save As PDF

    Hi im looking for simple code to use vba to save an excel file as a PDF ? Here is my code so far : Set wb = Workbooks.Add ThisWorkbook.Activate ActiveSheet.Copy Before:=wb.Sheets(1) wb.Activate wb.SaveAs Filename:= Range("G5") & "-" & Range("G7") & Range("D7") &...
  6. K

    VBA Runtime '9' Error when Doing file Save as

    I have a 3 Macros in a workbook that are pulling tabs, pasting the information as values, auto populating the file name, and saving the file to same file path. All three are identical, except for the tabs that are pulled from the file. I continue to get a runtime '9' error when it gets to the...
  7. G

    VBA to append current date to file name during Save As

    Dear All, I am looking for VBA to do a Save As on the Excel file and append the current date to the end of the file name. For example, if the file name is "Accounts Payable" and the current date is 18 July 2011, I would like the Save As file name to be "Accounts Payable 20110718" (YYYYMMDD...
  8. X

    Macro to save as "xlsx"

    I have a macro that I am using to save the file from a cell on a worksheet, but the save has to be in "xlsx" format: Sub SaveAs() Dim FName As String Dim FPath As String FName = ActiveWorkbook.Sheets("DATA INPUT").Range("C2") FPath =...

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