macro to generate 290 pdf files based on changing cell value

rbongard

New Member
Joined
Nov 29, 2017
Messages
1
Hi,


I would like to create a macro which does the following:
1) Write a string in cell J16 in "worksheet1". The first string is taken from cell B2 in "Worksheet2". Step 1-3 should be repeated for the range B2-B292 in "Worksheet2" (290 times)
2) The string in cell J16 is used by other cells in "Worksheet1" to find reference values in several other worksheets (no separate coding needed for this step).
3) After each "new" string in cell J16 the first 10 pages of "worksheet1" should be saved as pdf. The name of the pdf file should be taken from cell J16.

This should lead to 290 different pdf reports. That is it. Thanks in advance for you help!

Kind regards,
Rene
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,217,388
Messages
6,136,311
Members
450,003
Latest member
AnnetteP

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