CupDeal

Hi, Friends this is blog about Trending Views

About CupDeal


Tuesday 5 March 2019

Add Header/Footer Date VBA Code

 Add Header/Footer Date
Use this code to add a date into the header or footer in your worksheet.

You can edit this code for switching from header to footer.

Sub dateInHeader()
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = "&D"
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = ""
.RightFooter = ""
End With
ActiveWindow.View = xlNormalView
End Sub

No comments:

Post a Comment

MI 4A "Search Filpkart Product"