Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Underlying events in a worksheet?

Does any event fire when a User clicks in a cell?
I don't have any adjacent cells for a date picker control so I made one
myself . It works fine on userforms but I would like to .show the
calendarForm if the user clicks in a cell that is formatted as Date.

Thanks.

Rick

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Underlying events in a worksheet?

This should get you started. It's tough to know how you have the fields
formatted, so you mway want to play around with this a bit.

Option Explicit

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim myFormat As String

If Target.Count 1 Then Exit Sub

myFormat = Target.NumberFormat
Debug.Print myFormat

End Sub



"rick" wrote:

Does any event fire when a User clicks in a cell?
I don't have any adjacent cells for a date picker control so I made one
myself . It works fine on userforms but I would like to .show the
calendarForm if the user clicks in a cell that is formatted as Date.

Thanks.

Rick


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Underlying events in a worksheet?

No event when you click on it.

But there is an event if you change selection or doubleclick or rightclick.

Chip Pearson has some instructions on events:
http://www.cpearson.com/excel/Events.aspx

David McRitchie has some notes, too:
http://www.mvps.org/dmcritchie/excel/event.htm

rick wrote:

Does any event fire when a User clicks in a cell?
I don't have any adjacent cells for a date picker control so I made one
myself . It works fine on userforms but I would like to .show the
calendarForm if the user clicks in a cell that is formatted as Date.

Thanks.

Rick


--

Dave Peterson
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
Excel worksheet shows reporting tool but code and underlying data notdisplayed pjalan Excel Programming 1 October 1st 08 02:48 AM
Handling Worksheet Events of a Worksheet Created During Runtime. chatterbox Excel Programming 1 April 25th 07 04:50 PM
Worksheet events damorrison Excel Programming 1 April 22nd 07 12:52 PM
Worksheet Events DCSwearingen Excel Discussion (Misc queries) 2 May 24th 06 10:42 PM
Worksheet events agarwaldvk[_33_] Excel Programming 0 October 4th 04 10:41 PM


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