More then 1 worksheet_change event

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi
I'm just starting to work with VBA and below are my codes.
I would need several routine like this one on the same worksheet but VBE won't
let me ( Can't have more than 1 worksheet_change ).
Can anyone help me ?

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False

If Not Application.Intersect(Target, Range("B1")) Is Nothing Then
If Range("B1") = "on" Then Me.Shapes("Autoshape 5").Visible = True
If Range("B1") = "off" Then Me.Shapes("Autoshape 5").Visible = False
End If
If Range("B1") = "on" Then
Range("A12").Value = "Please go to the next Question"
End If
If Range("B1") = "off" Then
Range("A12").Value = ""
Range("B1").Value = ""
End If

Range("B1").Select
Application.EnableEvents = True
End Sub

Best regards
John

.



Relevant Pages

  • RE: Importing Excel spreadsheets into well defined MS Access Appli
    ... I really liked the idea of writing codes. ... Please guide more about codes if possible. ... worksheet in the workbooks to unprotect them. ...
    (microsoft.public.access.externaldata)
  • Re: Quick help
    ... the Itemized expenses worksheet, and put the total on the Monthly summary ... will sum all codes from 1000 to 1999 inclusive. ... expenses' it has numbers ranging from 1000 to 15999+. ...
    (microsoft.public.excel.worksheet.functions)
  • RE: Re-starting a project but avoiding recursion???
    ... Then the only code required in the Event routine is 'Call Whatever' ... Sub CalledRoutine() ... When the worksheet opens, it triggers a Form to activate. ... then that subroutine retrieves the data from ...
    (microsoft.public.excel.programming)
  • Re: Can we revisit the "Implements" statement??
    ... it is not just case of copying the routine ... form the iData, but you have to indicate the interface in the call as well. ... Public Function foo(whichWS As Worksheet) As Variant ...
    (microsoft.public.excel.programming)
  • Re: Quick help
    ... It seems like it pulls only information from one worksheet. ... will sum all codes from 1000 to 1999 inclusive. ... expenses' it has numbers ranging from 1000 to 15999+. ...
    (microsoft.public.excel.worksheet.functions)