Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks again for the reply.
My problem is that the macro I am trying to run, but needs to stop this code, simply selects the entire range (c8:r20) and clears the cells. As there is no actual value to enter I am a little lost to entering this into the code??? Corey.... "Carim" wrote in message oups.com... Hi Corey, I think I did not express myself clearly enough ... With a test of your own ... say if there is the number 1 in cell A1 then nothing happens, otherwise your macro is executed ... Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim MyRange As Range If Range("A1").Value = 1 Then Exit Sub Else If Not Intersect(Target, Range("C8:R30")) Is Nothing Then Call frmCalendar.Show End If End If End Sub Hope this clarifies Cheers Carim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Prevent code in "Sheet Activate" from running when sheet made visible from other macr | Excel Programming | |||
Running VBA Code not written within the currrent worksheet | Excel Programming | |||
Worksheet Change code not running when you just delete data in cells. | Excel Programming | |||
MACRO OR VBA CODE TO PREVENT USERS FROM PRINTING THE CONTENTS OF A WORKSHEET? | Excel Programming | |||
Running Code in an XLA from a Worksheet | Excel Programming |