Re: Is it Possible Q

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks Bob, only problem I see is that the Timestamp only shows if you
actually save the file. The file I have doesn't necessary need saving, the
user just needs to open to view its contents, so if they do that I won't see
the times/dates etc

"Bob Phillips" <bob.phillips@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:upjprldwFHA.2792@xxxxxxxxxxxxxxxxxxxxxxx
> Private Sub Workbook_Open()
> Dim iLast As Long
> With Worksheets("Sheet1")
> iLast = .Cells(.Rows.Count, "A").End(xlUp).Row + 1
> If iLast = 2 Then
> If .Range("A1") = "" Then
> iLast = 1
> End If
> End If
> .Range("A" & iLast).Value = Format(Now, "dd mmm yyyy hh:mm:ss")
> End With
> End Sub
>
> 'This is workbook event code.
> 'To input this code, right click on the Excel icon on the worksheet
> '(or next to the File menu if you maximise your workbooks),
> 'select View Code from the menu, and paste the code
>
> --
> HTH
>
> Bob Phillips
>
> "John" <r.@xxxxxxxxxxxxxxx> wrote in message
> news:iKxZe.16122$R5.1191@xxxxxxxxxxxxxxxxx
>> Is it possible to Time stamp a sheet to indicate everytime a worksheet
>> has
>> been opened?
>>
>> I have a file which users should be using daily, but I suspect they are
> not
>> (although they tell me they are!) so I was wondering if I could build a
>> database within that file that would timestamp an area of a worksheet
> every
>> time the file was actually opened (as opposed to everytime it was saved,
> as
>> they might not have to save it everytime), say A1 in Sheet1, so the
>> second
>> time they access/open the file in would stamp A2 in Sheet1 etc etc
>>
>> Hope someone can help
>>
>>
>>
>
>


.



Relevant Pages

  • Re: what is the difference between Now() and Today()
    ... As the functions say today=date, nowis timestamp including time on ... create the worksheet to be saved and not updated everytime I reopen it. ... Michael ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Why does this bring up VB?
    ... the worksheet was deleted if it existed. ... With VB open, CodeName is filled ... It can be easier than that Bob. ... The recompile can be forced with this code ...
    (microsoft.public.excel.programming)
  • Re: Adding a Control programatically
    ... > Are yhou using Excel 97? ... > Bob Phillips ... >>> Help and the usual Debug button is greyed out. ... >>> If I select 'End', the button appears on the worksheet in Edit Mode, ...
    (microsoft.public.excel.programming)
  • Re: VB copde help - please!
    ... Data' worksheet from A2:AC2. ... Invoice data sheet so nothing needs to be done there except print it when all ... the worksheet with the name 'Anthony' is searched for and once found cells ... Does this make any better sense - hey and many thanks for this so far Bob ...
    (microsoft.public.excel.misc)
  • Re: Modified vb - but it wont work
    ... My worksheet says: Option Explicit and I do have another vb ... "Bob Phillips" wrote: ... > Dim r As Long ... >> Private Sub Worksheet_Change ...
    (microsoft.public.excel.programming)