Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default Macro Help + date

I have a button that basically approves jobs, i need a line of code that when
pressed will automatically insert the current date into 4 separate cells
within the excel sheet.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Macro Help + date


range("A1")=Date

"Neil Holden" wrote:

I have a button that basically approves jobs, i need a line of code that when
pressed will automatically insert the current date into 4 separate cells
within the excel sheet.

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Macro Help + date

Range("A1,C1,E1,G1") = Date()

If this post helps click Yes
---------------
Jacob Skaria


"Neil Holden" wrote:

I have a button that basically approves jobs, i need a line of code that when
pressed will automatically insert the current date into 4 separate cells
within the excel sheet.

Thanks.

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
macro to date stamp to the right of the macro command button Roha Excel Programming 4 July 31st 09 01:26 PM
Macro to Insert Current Date into cell - Macro to "Save As" Guy[_2_] Excel Worksheet Functions 4 December 12th 08 08:20 PM
Date Macro if B is populated then date in A RefLib1978 Excel Programming 3 August 23rd 07 05:52 PM
Date Macro in_trouble Excel Discussion (Misc queries) 2 March 28th 07 03:06 AM
A macro for the today's date...not the current date abxy[_18_] Excel Programming 7 February 8th 04 11:05 PM


All times are GMT +1. The time now is 01:56 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"