Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
sheet macros
I have a macro on a sheet that works fine, every time you select a new cell
up pops my form, great, except sometimes it really bugs me. What I thought was I'd add a button on the form to turn the macro off, or rename it so it doesn't fire on Worksheet_SelectionChange. My only success so far is stick a value in a cell and have the Worksheet_SelectionChange macro look in this cell for a go/no go flag. Is there a better way? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
sheet macros
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim fire As String FireEvents = Cells(1, 1) Select Case FireEvents Case Is = "yes" MsgBox "yes" Case Is = "no" 'Exit Sub End Select End Sub "Graham Y" wrote: I have a macro on a sheet that works fine, every time you select a new cell up pops my form, great, except sometimes it really bugs me. What I thought was I'd add a button on the form to turn the macro off, or rename it so it doesn't fire on Worksheet_SelectionChange. My only success so far is stick a value in a cell and have the Worksheet_SelectionChange macro look in this cell for a go/no go flag. Is there a better way? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Turning Off Personal Macros sheet | Excel Discussion (Misc queries) | |||
Macros and protect sheet | Excel Worksheet Functions | |||
run macros on protected sheet | Excel Discussion (Misc queries) | |||
excel-How many macros can one spread sheet have | Excel Worksheet Functions | |||
is it possible to use macros when the sheet is protected | Excel Discussion (Misc queries) |