Macro that Cycles through Drop down list Calculates values and changes page numbers on each value

Campus

New Member
Joined
May 1, 2018
Messages
1
I am trying to get this macro to incorporate changing the footer page number after each drop down value calculates and prints. (getting this footer in the same correct font and format would also be a huge plus: Garamond, Size 10, RGB(135,135,135)!

Here is what i have so far:

Sub PrintMacro()
Dim dvCell As Range
Dim inputRange As Range
Dim c As Range



'Which cell has data validation
Set dvCell = Worksheets("Sheet1").Range("B2")​
'Determin where validation comes from
Set inputRange = Evaluate(dvCell.Validation.Formula1)​


For Each c In inputRange
dvCell = c.Value​
ActiveSheet.PrintOut​
Next c


End Sub

Thanks!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,566
Messages
6,120,257
Members
448,952
Latest member
kjurney

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