Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default putting in todays date

hello,

I am looking for coding that will allow me to put in
todays date into a cell when a checkbox is checked. Any
help would be appreciated.

Thanks,
Dan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default putting in todays date

Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
Range("A1").Value = Now()
Else
Range("A1").Value = ""
End If
End Sub

- Manges

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default putting in todays date

What would i change "now()" to if i do not want the time?


-----Original Message-----
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
Range("A1").Value = Now()
Else
Range("A1").Value = ""
End If
End Sub

- Mangesh


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

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default putting in todays date

Date

Range("A1").Value = Date
--
Regards,
Tom Ogilvy


"Dan" wrote in message
...
What would i change "now()" to if i do not want the time?


-----Original Message-----
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
Range("A1").Value = Now()
Else
Range("A1").Value = ""
End If
End Sub

- Mangesh


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

.



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
is there a formula that will subtract todays date from a hire date Heather Excel Worksheet Functions 5 April 25th 23 07:44 PM
Making a date go red, if date passes todays date. Jamie Excel Worksheet Functions 2 September 9th 08 02:14 PM
Exel increment date problem wrt todays date. [email protected] Excel Worksheet Functions 1 November 11th 07 06:58 PM
Create a button that will date stamp todays date in a cell Tom Meacham Excel Discussion (Misc queries) 3 January 11th 06 01:08 AM
When I open my past invoice it keeps changing date to todays date Stop date changing to todays in Excel Excel Worksheet Functions 2 October 7th 05 04:54 PM


All times are GMT +1. The time now is 03:52 PM.

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"