Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
simple command button question
I have placed a command button on sheet1 when clicked I need it to insert
todays date i.e. = today() into cell J2 Thanks in advance, David D |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
simple command button question
I have placed a command button on sheet1 when clicked I need it
to insert todays date i.e. = today() into cell J2 Is it a Visual Basic CommandButton? If so, in Design Mode, use this Click event code... Private Sub CommandButton1_Click() Range("J2").Value = Date End Sub Rick |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
simple command button question
Attach the button to the following macro
Sub myDate() ActiveSheet.Cells(2,10).Value = Date End Sub (10 being the column number corresponding to "J") Hope that helps. -Lisa On Jul 11, 1:59 pm, "David" wrote: I have placed a command button on sheet1 when clicked I need it to insert todays date i.e. = today() into cell J2 Thanks in advance, David D attach the |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Simple question on With command | Excel Discussion (Misc queries) | |||
Command Button Question | Excel Programming | |||
Command Button question | Excel Programming | |||
command button question | Excel Programming | |||
Command Button Question | Excel Programming |