Hi All
Looking for some assistance please in a macro that runs on all sheets with a particular value/name.
My code below sets the printing settings for all sheets in a workbook.
What I am having difficulty in working out, and seek your assistance, is how to only format sheets that have a particular value in a cell (say “@” in A1). Also is it possible to do the same but on a worksheets name or value within the name?
Thank you
Julian
Haveagreatweekend!!!!
I Wish!!!
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Activate
Rows("1:1").Select
Selection.Insert Shift:=x1Down
Selection.Insert Shift:=x1Down
Selection.Insert Shift:=x1Down
Rows("2:3").Select
Selection.RowHeight = 4.5
Range("b4").Select
With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$7"
.PrintTitleColumns = ""
PLUS CODE THAT SETS MARGINS AND HEADERS ETC.
End With
Next ws
End Sub
Looking for some assistance please in a macro that runs on all sheets with a particular value/name.
My code below sets the printing settings for all sheets in a workbook.
What I am having difficulty in working out, and seek your assistance, is how to only format sheets that have a particular value in a cell (say “@” in A1). Also is it possible to do the same but on a worksheets name or value within the name?
Thank you
Julian
Haveagreatweekend!!!!
I Wish!!!
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
ws.Activate
Rows("1:1").Select
Selection.Insert Shift:=x1Down
Selection.Insert Shift:=x1Down
Selection.Insert Shift:=x1Down
Rows("2:3").Select
Selection.RowHeight = 4.5
Range("b4").Select
With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$7"
.PrintTitleColumns = ""
PLUS CODE THAT SETS MARGINS AND HEADERS ETC.
End With
Next ws
End Sub