Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Macro for auto date/time stamp

I am trying to write a macro that I can assign to a button that when pressed,
will insert the current date and time in cell B7 on a sheet named
"Project-1". Please note that the button will be located on a different
sheet other than "Project-1". I would greatly appreciate any help in writing
this macro (I'm just starting to learn VBA). Thanks in advance for any help.
Bob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Macro for auto date/time stamp

Use this Bob

Sheets("Project-1").Range("B7").Value = Format(Now, "dd-mmm-yy hh-mm-ss")


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Bob" wrote in message ...
I am trying to write a macro that I can assign to a button that when pressed,
will insert the current date and time in cell B7 on a sheet named
"Project-1". Please note that the button will be located on a different
sheet other than "Project-1". I would greatly appreciate any help in writing
this macro (I'm just starting to learn VBA). Thanks in advance for any help.
Bob



  #3   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Macro for auto date/time stamp

Ron,
As always, thanks!!!
Bob


"Ron de Bruin" wrote:

Use this Bob

Sheets("Project-1").Range("B7").Value = Format(Now, "dd-mmm-yy hh-mm-ss")


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Bob" wrote in message ...
I am trying to write a macro that I can assign to a button that when pressed,
will insert the current date and time in cell B7 on a sheet named
"Project-1". Please note that the button will be located on a different
sheet other than "Project-1". I would greatly appreciate any help in writing
this macro (I'm just starting to learn VBA). Thanks in advance for any help.
Bob




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
Date-time stamp Daniel Excel Discussion (Misc queries) 3 September 7th 09 10:58 AM
Auto Stamp Date ShePink77 Excel Discussion (Misc queries) 13 March 27th 09 10:35 PM
how do i auto insert a date and time stamp cjensen Excel Discussion (Misc queries) 3 February 6th 07 03:44 AM
Date/time Stamp? Bowes813[_3_] Excel Programming 7 June 3rd 05 08:10 AM
Date/Time Stamp Macro Button Problem jp_m8 Excel Programming 5 August 26th 04 07:33 PM


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

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

About Us

"It's about Microsoft Excel"