Cynthia Zone
New Member
Hello,
Is there a code to insert todays date in a line of text.
e.g.
Here is the header ( I need to keep the formatting but change the date to today's date every time the file is run. Currently the date reads 20140930.
Thank you so much. If someone could help me with this today I would appreciate it.
H10724196825306601ABC Company Limited20140930 SMB00001 1N
Is there a code to insert todays date in a line of text.
e.g.
Code:
Sub InsertHeader()
'
' InsertHeader Macro
' Insert Header to A1
'
'
Rows("1:1").Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Range("A1").Select
ActiveCell.FormulaR1C1 = "=+Sheet1!RC"
Range("A2").Select
End Sub
Here is the header ( I need to keep the formatting but change the date to today's date every time the file is run. Currently the date reads 20140930.
Thank you so much. If someone could help me with this today I would appreciate it.
H10724196825306601ABC Company Limited20140930 SMB00001 1N
Last edited by a moderator: