View Single Post
  #1   Report Post  
Microuch Microuch is offline
Junior Member
 
Location: London
Posts: 2
Default CellinFooter() Specify Which Sheets are updated

I have spent much of the morning looking at various forums & threads but had no luck finding exactly what I need.

As you can see the code below updates the right headers for all sheets in my workbook with the value in sheet = VBlookup, Cell B1. I have several sheets in the work book that I don't want updated. Is it possible to specify which sheets the code update?

Thanks in advance

Sub CellInFooter()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.PageSetup.RightHeader = Range("VBlookup!B1").Text
Next ws
End Sub