Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to run a procedure on entering a specific cell?

How to run a procedure on entering a specific cell?

I am trying to pop up a calendar control to enter a date into a
specific cell. For example: when the user moves the cursor to "B5", the
calendar control should become visible. The user then clicks on a date,
which is updated in cell "B5"

My problem is I do not know how to detect when the user selects a
specific cell in order to run the procedure. Is there a way?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default How to run a procedure on entering a specific cell?

Create:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
in worksheet code.

Target tells you which cell(s) have been selected.

HTH
--
AP

a écrit dans le message de
oups.com...
How to run a procedure on entering a specific cell?

I am trying to pop up a calendar control to enter a date into a
specific cell. For example: when the user moves the cursor to "B5", the
calendar control should become visible. The user then clicks on a date,
which is updated in cell "B5"

My problem is I do not know how to detect when the user selects a
specific cell in order to run the procedure. Is there a way?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default How to run a procedure on entering a specific cell?

Hi, try this:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
cell_position = "$B$5"
check = ActiveCell.CurrentRegion.Address
If cell_position = check Then MsgBox "Your action"
' runs when a the cell is entered
End Sub


" napĂ*sal (napĂ*sala):

How to run a procedure on entering a specific cell?

I am trying to pop up a calendar control to enter a date into a
specific cell. For example: when the user moves the cursor to "B5", the
calendar control should become visible. The user then clicks on a date,
which is updated in cell "B5"

My problem is I do not know how to detect when the user selects a
specific cell in order to run the procedure. Is there a way?


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 2007 crashes on entering data in a specific range of cells Sunny Dacat Excel Discussion (Misc queries) 1 September 12th 08 01:16 PM
entering items on specific dates of year Puzzled Excel Discussion (Misc queries) 0 March 11th 06 03:32 PM
Entering Data in 1 Worksheet to appear in a specific format in Sheet 2 iomighty[_3_] Excel Programming 4 June 4th 04 11:49 PM
Entering data while procedure is on Pierre Leclerc Excel Programming 2 July 24th 03 08:01 PM


All times are GMT +1. The time now is 05:10 AM.

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"