Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 crashes on entering data in a specific range of cells | Excel Discussion (Misc queries) | |||
entering items on specific dates of year | Excel Discussion (Misc queries) | |||
Entering Data in 1 Worksheet to appear in a specific format in Sheet 2 | Excel Programming | |||
Entering data while procedure is on | Excel Programming |