Upgrade Macro to populate cell and then print on loop

zigaturkster

New Member
Joined
Mar 26, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I would like to upgrade an already answered question in a thread: Macro to populate cell and then print on loop

I want to upgrade in a way that in addition to increasing a number in a cell and printing to take a value from a cell and save it with the name in the cell and also to the same time define which printer to use (if possible), want to save it to PDF with excel default windows to pdf printer.

I have a file with a list of employees with their details regarding their days off (300 people) and I want to print for each employee a separate sheet where it is stated how much days off they have and save it as an individual pdf with their name. The employe data is in "Master" sheet and print is in "Form", the form is populated with vlookup from cell J1 in "Form" sheet and the name of how the PDF should be saved is in J2.

I have tried to write a macro but I need help.

The file is on drive link: Odločbe za dopust.xlsm

Thank you.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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