PC Review


Reply
Thread Tools Rate Thread

Create a button that will date stamp todays date in a cell

 
 
Tom Meacham
Guest
Posts: n/a
 
      11th Jan 2006
I want to create a button that when clicked will enter todays date in the
selected cell. Basically a date stamp button. I tried doing a macro but it
did not work for me. I know the shortcut of ctrl+; to enter a date but I
have others using the worksheet.

Thanks


 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      11th Jan 2006
Create a button from the Forms command bar, and assign to it the
following macro:

Sub TimeStamp()
ActiveCell.Value = Int(Now)
End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Tom Meacham" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I want to create a button that when clicked will enter todays
>date in the selected cell. Basically a date stamp button. I
>tried doing a macro but it did not work for me. I know the
>shortcut of ctrl+; to enter a date but I have others using the
>worksheet.
>
> Thanks
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      11th Jan 2006
or just
ActiveCell.Value = Date
<vbg>

Chip Pearson wrote:
>
> Create a button from the Forms command bar, and assign to it the
> following macro:
>
> Sub TimeStamp()
> ActiveCell.Value = Int(Now)
> End Sub
>
> --
> Cordially,
> Chip Pearson
> Microsoft MVP - Excel
> Pearson Software Consulting, LLC
> www.cpearson.com
>
> "Tom Meacham" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >I want to create a button that when clicked will enter todays
> >date in the selected cell. Basically a date stamp button. I
> >tried doing a macro but it did not work for me. I know the
> >shortcut of ctrl+; to enter a date but I have others using the
> >worksheet.
> >
> > Thanks
> >


--

Dave Peterson
 
Reply With Quote
 
CLR
Guest
Posts: n/a
 
      11th Jan 2006
Or if you wanted to put the date in several cells......<G>

Selection.Value = Date

Vaya con Dios,
Chuck, CABGx3


"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> or just
> ActiveCell.Value = Date
> <vbg>
>
> Chip Pearson wrote:
> >
> > Create a button from the Forms command bar, and assign to it the
> > following macro:
> >
> > Sub TimeStamp()
> > ActiveCell.Value = Int(Now)
> > End Sub
> >
> > --
> > Cordially,
> > Chip Pearson
> > Microsoft MVP - Excel
> > Pearson Software Consulting, LLC
> > www.cpearson.com
> >
> > "Tom Meacham" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > >I want to create a button that when clicked will enter todays
> > >date in the selected cell. Basically a date stamp button. I
> > >tried doing a macro but it did not work for me. I know the
> > >shortcut of ctrl+; to enter a date but I have others using the
> > >worksheet.
> > >
> > > Thanks
> > >

>
> --
>
> Dave Peterson



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create filename based todays date =?Utf-8?B?TGFycyBIb3N0cnVw?= Microsoft Access VBA Modules 3 11th Jul 2007 04:00 PM
Create a reference to a sheet that changes to todays date =?Utf-8?B?R3Jk?= Microsoft Excel Worksheet Functions 2 14th Aug 2006 05:36 PM
Put todays date in a cell by checking a box!! =?Utf-8?B?TWFydGlu?= Microsoft Excel Misc 1 24th Oct 2005 09:01 PM
How to create dir with todays date? Tim Microsoft Windows 2000 CMD Promt 1 27th Sep 2004 04:52 PM
Todays date in a cell Sophie Microsoft Excel Misc 2 12th Jul 2003 01:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:09 PM.