Save a file with the path and the filename coming from a specific folder and cell address; Print a specific sheet.

mad4max

New Member
Joined
Mar 30, 2014
Messages
18
Hi everybody…

I’m a newbie in VBA and I have a recurrent problem.

I like to have a folder called: “Param” in which I setup several parameters that I can reuse later.

Example of the sheet PARAM as showed in attached image.

I need now the following macros:

  • A macro to safe the file in Excel format, in the folder specified in the cell C13 from the folder PARAM, with the filename specified in the cell C14;
  • A macro to safe the file in PDF format, in the folder specified in the cell C15 from the folder PARAM, with the filename specified in the cell C16;
  • A macro to print the Worksheet Recap-CA-N1, which name is specified in the cell C19, as it. The print option are defined in the worksheet itself;
  • A macro to save in PDF the Worksheet Recap-CA-N1, with the same name as specified in the cell C19, in the folder specified in the cell C15 from the folder PARAM.
Thank you for your always valuable help.
 

Attachments

  • ParamMacroSaveFile.png
    ParamMacroSaveFile.png
    47.7 KB · Views: 5

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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