Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Need to display todays date plus 10 in the page setup header.
|
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This macro should do it.........
Sub DatePlus10ToHeader() With ActiveSheet.PageSetup .LeftHeader = Month(Date) & "/" & Day(Date) + 10 & "/" & Year(Date) End With End Sub Vaya con Dios, Chuck, CABGx3 "phil@work" wrote: Need to display todays date plus 10 in the page setup header. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I think I'd use:
Sub DatePlus10ToHeader() With ActiveSheet.PageSetup .LeftHeader = format(date+10,"mm/dd/yyyy") End With End Sub When you concatenated the string, day(date)+10 might not be the day you want. CLR wrote: This macro should do it......... Sub DatePlus10ToHeader() With ActiveSheet.PageSetup .LeftHeader = Month(Date) & "/" & Day(Date) + 10 & "/" & Year(Date) End With End Sub Vaya con Dios, Chuck, CABGx3 "phil@work" wrote: Need to display todays date plus 10 in the page setup header. -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Agreed Dave.......thanks for making the point.
Vaya con Dios, Chuck, CABGx3 "Dave Peterson" wrote: I think I'd use: Sub DatePlus10ToHeader() With ActiveSheet.PageSetup .LeftHeader = format(date+10,"mm/dd/yyyy") End With End Sub When you concatenated the string, day(date)+10 might not be the day you want. CLR wrote: This macro should do it......... Sub DatePlus10ToHeader() With ActiveSheet.PageSetup .LeftHeader = Month(Date) & "/" & Day(Date) + 10 & "/" & Year(Date) End With End Sub Vaya con Dios, Chuck, CABGx3 "phil@work" wrote: Need to display todays date plus 10 in the page setup header. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Complicated formula please help asap! | Excel Worksheet Functions | |||
Formula for determining if two date columns fall within specific date range | Excel Worksheet Functions | |||
Formula for determining if two date columns fall within specific date range | Excel Discussion (Misc queries) | |||
Dynamic Range with unused formula messing up x axis on dynamic graph | Charts and Charting in Excel | |||
formula for filtering and a defaulting date | Excel Worksheet Functions |