#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 66
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default 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
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
Turning Off Personal Macros sheet [email protected] Excel Discussion (Misc queries) 1 February 21st 07 01:53 AM
Macros and protect sheet traima Excel Worksheet Functions 4 January 25th 07 10:25 PM
run macros on protected sheet widman Excel Discussion (Misc queries) 4 December 10th 06 10:09 AM
excel-How many macros can one spread sheet have David Excel Worksheet Functions 1 April 1st 06 01:04 PM
is it possible to use macros when the sheet is protected Dajana Excel Discussion (Misc queries) 1 September 23rd 05 03:08 AM


All times are GMT +1. The time now is 12:20 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"