bto.zapata
New Member
- Joined
- Jul 5, 2012
- Messages
- 12
Hi everyone!
I'm having some toruble givin' Format to a header. This is a background:
Cell "A2" has the values of mi header's first line
Cell "A3" has the values of mi header's Second line
I intend to format values in A2 as White/BOLD/Arial/24 font size
and values in A3 as White/BOLD/Arial/8 font size
this is as long as i have gone...
But i don't know the synthaxis... any tips?
I'm having some toruble givin' Format to a header. This is a background:
Cell "A2" has the values of mi header's first line
Cell "A3" has the values of mi header's Second line
I intend to format values in A2 as White/BOLD/Arial/24 font size
and values in A3 as White/BOLD/Arial/8 font size
this is as long as i have gone...
Code:
Public Sub Workbook_BeforePrint(Cancel As Boolean)
Dim wks As Worksheet
For Each wks In ActiveWorkbook.Worksheets
wks.Rows("1:3").EntireRow.Hidden = True
wks.PageSetup.LeftHeader = "" & Chr(10) & ActiveSheet.Cells(2, 1) & Chr(10) & ActiveSheet.Cells(3, 1)
Next wks
End Sub
But i don't know the synthaxis... any tips?