Date/Time Stamping?

  • Thread starter Thread starter (PeteCresswell)
  • Start date Start date
P

(PeteCresswell)

I'd like to be able to automagically enter the date/time.
Either into separate cells (one for date another for time) or into a single
cell.

Nothing complicated - just keeping a list of network response time tests. First
column(s) will be Date/Time, the other column will be KBPS.

I can do VBA, just don't know where to start.
 
Per Paul B:

Not to turn into a tarbaby on you... but...

Once I assign that macro to a custom button, how do I feed it the address of the
currently-active cell?

I tried

VerizonSpeedTestResults.xls'!DateTimeStamp(Excel.Application.ActiveCell)

but it's telling me "macro not found..."

OTOH if I just feed it

VerizonSpeedTestResults.xls'!DateTimeStamp()

it gets to the macro but, of course, the macro dies on the
missing argument.
 
Pete

The code from J.E.'s site is worksheet event code and not designed to be
assigned to a button.

It runs off an event change.

Right-click your sheet tab and "View Code"

Copy/paste the code from J.E.'s site into that sheet module.


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top