Sub UpdateHeaderDataVariable()
Dim WS As Worksheet
Dim InDate1 As String
Dim InDate2 As String
Dim InDate3 As String
Dim Date1 As Date
Dim Date2 As Date
Dim Date3 As Date
'InDate1 = (cd ..) File (Monthly_Report_Date_-_??-???.xls, Sheet1, Cell A1)
'InDate2 = (cd ..) File (Monthly_Report_Date_-_??-???.xls, Sheet1, Cell A2)
'InDate2 = (cd ..) File (Monthly_Report_Date_-_??-???.xls, Sheet1, Cell A3)
'Date1 = CDate(InDate1)
'Date2 = CDate(InDate2)
'Date3 = CDate(InDate3)
Set WS = Sheets("Sheet1")
WS.PageSetup.CenterHeader = ""
WS.PageSetup.CenterHeader = "Internal Report (Variable Here)"
' Format the Header here to be 16 point, Bold, Garmond
Set WS = Sheets("Sheet2")
WS.PageSetup.CenterHeader = ""
'WS.PageSetup.CenterHeader = "External Report (Variable Here)
'WS.PageSetup.CenterHeader = "External Report " & Date 2
' Format the Header here to be 16 point, Bold, Garmond
Set WS = Sheets("Sheet3")
WS.PageSetup.CenterHeader = ""
WS.PageSetup.CenterHeader = "Summary Report (Variable Here)"
' WS.PageSetup.CenterHeader = "Summary Report " & vbNewLine & _ Date3
' Format the Header here to be 16 point, Bold, Garmond
End Sub
06-2010.zip
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE