gilbertbyproxy
New Member
- Joined
- Jun 11, 2011
- Messages
- 4
Hi All
I am failing but still trying to write a macro or formula to change NOW() in to text, in a cell so when I view it in future, it will remain at the date when the data was entered in to that column.
For this I am currently using
M50=COUNTIF(M5:M49,"")
M4=IF(M50<>44,NOW(),"")
The following week I and or others are entering data into the next column only and so on. All the dates are in Range("F4:IK4")
I also need to protect the last/all previous columns containing data when I close the workbook.
I have tried a circular formula for the date but other people need to input data as well and it reminds you that it is there all the time.
M4=IF(AND(M4="",NOT(ISBLANK(M7))),NOW(),IF(ISBLANK(M7),"",M4))
I unsuccessfully tried a macro for the date
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Range("F4:IK4").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=True, Transpose:=False
End Sub
but this removes the formulas from the cells to be filled in at a later date.
Unfortunately I don't have access to the workbook until the 16th June.
Thanks in advance.
I am failing but still trying to write a macro or formula to change NOW() in to text, in a cell so when I view it in future, it will remain at the date when the data was entered in to that column.
For this I am currently using
M50=COUNTIF(M5:M49,"")
M4=IF(M50<>44,NOW(),"")
The following week I and or others are entering data into the next column only and so on. All the dates are in Range("F4:IK4")
I also need to protect the last/all previous columns containing data when I close the workbook.
I have tried a circular formula for the date but other people need to input data as well and it reminds you that it is there all the time.
M4=IF(AND(M4="",NOT(ISBLANK(M7))),NOW(),IF(ISBLANK(M7),"",M4))
I unsuccessfully tried a macro for the date
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Range("F4:IK4").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=True, Transpose:=False
End Sub
but this removes the formulas from the cells to be filled in at a later date.
Unfortunately I don't have access to the workbook until the 16th June.
Thanks in advance.