Adding a footer to dynamic sheet list

kmakino

New Member
Joined
Jul 29, 2021
Messages
1
Platform
  1. Windows
So I'm trying to get footers attached to a dynamic sheet list.

On a tab, I have the sheet names in cells that I want to attach footer as a named range (called Sheet_List) such as:
A1: Page_1
A2: Page_2
etc.

In VBA, I was wondering if I can refer to the named range "Sheet_List" to attach footers instead of typing in the sheet names in the code. Right now, I have

For Each ws In Array(Sheets("Page_1"), Sheets("Page_2"))
ws.PageSetup.LeftFooter = "Stuff"
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,215,461
Messages
6,124,953
Members
449,198
Latest member
MhammadishaqKhan

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