Results 1 to 7 of 7

Private Sub Worksheet_Change stops working when I have certain workbooks open.

Threaded View

  1. #1
    Registered User
    Join Date
    11-11-2008
    Location
    New Zealand
    Posts
    4

    Private Sub Worksheet_Change stops working when I have certain workbooks open.

    hi,

    I have a large model (45 sheets) , with the following code on one of the sheets

    Private Sub Worksheet_Change(ByVal Target As Range)
        Dim KeyCells As Range
        Set KeyCells = Sheets(1).Range("projects")
        
        If Not Application.Intersect(KeyCells, Range(Target.Address)) _
        Is Nothing Then
     
    Call Locked
        End If
    End Sub

    It works fine at the moment with only that workbook open. However, with other workbooks open at the same open its stops working and it does not start working even after I close the other workbooks.

    Does anyone have any ideas?
    Last edited by forth250; 11-11-2008 at 09:13 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1