Sheets("Sheet1").Range("A1") = Date
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
"AdrianXing" <Adria...@discussions.microsoft.com> wrote in message
news:5F26601D-A0A5-468F...@microsoft.com...
> Does anyone know of a function that can make Excel automatically insert
> the
> current date into a cell when a file is opened up?
On Mar 6, 12:08 pm, aspect30 <aspec...@discussions.microsoft.com>
wrote:
--
Rick (MVP - Excel)
"aspect30" <aspe...@discussions.microsoft.com> wrote in message
news:AF5F11F6-12C8-4A22...@microsoft.com...
This is sheet event code.
Right-click on the sheet tab and "View Code"
Copy/paste into that module.
Alt + q to return to the Excel window.
Enter something in a cell in column A and a static date/time will be entered
in column B
Gord Dibben MS Excel MVP
On Sat, 14 Mar 2009 10:43:03 -0700, MikeW <Mi...@discussions.microsoft.com>
wrote:
Hi Paul,
to implement a correct time-stamp mechanism it is sometimes necessary
to "rebuild" the time-stamping formula; have a look at
http://groups.google.com/group/microsoft.public.excel.worksheet.functions/browse_thread/thread/b0dd2e626011e2d7/f1b447a790090855?hl=en&q=#f1b447a790090855
Cheers Michael
> I tried adding =TODAY() directly into the cell, but it only prints with
those same characters in the document. It doesn't show a date.
Format that cell as General or with the specific date format that you prefer, then re-enter the
formula. The cell was formatted as text, which disables formulas just for that cell....
HTH,
Bernie
MS Excel MVP
"RendaBay" <Rend...@discussions.microsoft.com> wrote in message
news:2E6ED582-CBB3-470B...@microsoft.com...
Can anyone help me please...
Thanks
Lejo
Gord
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo stoppit
Application.EnableEvents = False
If Target.Address = "$A$1" Then
Target.Offset(0, 1).Value = Format(Now, "mm-dd-yyyy hh:mm")
End If
stoppit:
Application.EnableEvents = True
End Sub
If you want this for any cell in Column A use this code instead.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'when entering data in a cell in Col A
On Error GoTo stoppit
Application.EnableEvents = False
If Target.Cells.Column = 1 Then
n = Target.Row
If Me.Range("A" & n).Value <> "" Then
Me.Range("B" & n).Value = Format(Now, "mm-dd-yyyy hh:mm")
End If
End If
stoppitl:
Application.EnableEvents = True
End Sub
Gord Dibben MS Excel MVP
On Mon, 3 May 2010 23:30:02 -0700, Felix <Fe...@discussions.microsoft.com>
wrote:
With first date in A1, enter in A2
=DATE(Year(A1),MONTH(A1)+1,1)
--
Regards
Roger Govier
"Md. Muhasenul Haque" <Md. Muhasenul Haque @discussions.microsoft.com> wrote
in message news:38109FC4-9661-475F...@microsoft.com...
> __________ Information from ESET Smart Security, version of virus
> signature database 5167 (20100602) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>
__________ Information from ESET Smart Security, version of virus signature database 5167 (20100602) __________
The message was checked by ESET Smart Security.
=DATE(YEAR(A1),MONTH(A1)+1,1)
Arvi Laanemets
"Md. Muhasenul Haque" <Md. Muhasenul Haque @discussions.microsoft.com>
kirjutas sõnumis news: 38109FC4-9661-475F...@microsoft.com...
Sub Workbook_Open()
Worksheets("sheet1").Range("a1") = Now()
End Sub
This will automatically enter the date when a workbook is opened
from information at http://www.ozgrid.com/VBA/auto-run-macros.htm
Regards
Steve
"Md. Muhasenul Haque" <Md. Muhasenul Haque @discussions.microsoft.com> wrote
in message news:38109FC4-9661-475F...@microsoft.com...