3 replies
by johnsonsoftware Accepted solution
by davidliu Accepted solution
Private Sub Workbook_Open()
Sheets(1).Activate
If Range("A1") = "" Then Range("A1") = Now()
End Sub
by vo_yager Accepted solution
To Stamp Date Only, press Ctrl + ;
To Stamp Time Only, press Ctrl + Shift + :
If you want to use Macro
1. Press Alt & F11 [Open the VB Editor]
2. Select Module from Insert Menu
3. Copy & Paste below code into the Module
4. =fDate() [Use it like any Function]
Option Explicit
'---------------------------------------------------------------------------------------
' Function : fDate()
' Purpose : Add a fixed date to a cell
' Date : 20-Apr-12
' Website : www.rain-forest-forum.com
'---------------------------------------------------------------------------------------
'
Function fDate()
fDate = Date
End Function
This discussion is closed to new replies.
Trending Software posts
Sort by Trending