Inserting the system time

  • Thread starter Thread starter Dazza
  • Start date Start date
D

Dazza

Hi, I have a command button that executes a VB marco (it
refreshed price data). What code can I use so that the
time that the macro was executed, in format hh.mm.ss, is
displayed in cell P12?

Kind Regards,
 
format p12 to the way you require it to display the time

use this code
range("p12")=now()
 

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