Linking code to a cell
- From: Fernandoalberte <Fernandoalberte.1rfgqb_1120115111.6807@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 01:30:35 -0500
Hi Guys,
I know there is a way of automatically runnig a piece of code when a
user selects a certain cell (eg if they select cell A1 code A runs,
whereas if they selecet cell B1 code B may run).
However what i woudl like to do, and what i am struggling to do is.
Run the code if the cell selected is within a certain range. For
example, if the range is a1:d5 and user selects cell b3 it runs some
code, where as if the user selects E2 it will not as this is not in the
code.
Is there a simple way of doing this? Its driving me crazy.
Regards,
Fernando
--
Fernandoalberte
------------------------------------------------------------------------
Fernandoalberte's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=24493
View this thread: http://www.excelforum.com/showthread.php?threadid=383440
.
- Follow-Ups:
- Re: Linking code to a cell
- From: Mike Fogleman
- Re: Linking code to a cell
- From: Roman
- Re: Linking code to a cell
- From: Scott Orchard
- Re: Linking code to a cell
- Prev by Date: Re: putting formula in cel gives #NAME error
- Next by Date: Copy 1-4 sheets to a new workbook
- Previous by thread: subroutine to get all of the Named range properties
- Next by thread: Re: Linking code to a cell
- Index(es):