vba save as

  1. 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...
  2. 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") &...
  3. 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...
  4. 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...
  5. 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
Top