Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Inserting the system time

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,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Inserting the system time

format p12 to the way you require it to display the time

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


---
Message posted from http://www.ExcelForum.com/

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Inserting the system time

Range("P12").Value=Format(Now(),"hh.mm.ss")

--
Olly


"Dazza" wrote in message
...
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,



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I get the system date & time for different cell record Get System Date & Time Excel Discussion (Misc queries) 8 January 9th 08 01:20 AM
Copy System Time Dave VB logic for excel Excel Discussion (Misc queries) 3 July 26th 07 03:31 PM
Displaying the current system time - 2nd Try Zach Excel Worksheet Functions 3 July 17th 07 06:07 PM
Formula requireing the system time Major Tomm Excel Worksheet Functions 9 September 10th 05 04:57 PM
A code to modify the system time ? Ayato Excel Programming 1 December 2nd 03 12:21 AM


All times are GMT +1. The time now is 08:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"