Results 1 to 9 of 9

Setting Target for Worksheet Change Event

Threaded View

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    30

    Setting Target for Worksheet Change Event

    This piece of code keeps crashing Excel and I have no idea why:

    Private Sub Worksheet_Change(ByVal Target As Range)
    
    Dim i As Long
    
    Application.ScreenUpdating = False
    
    
    For i = 2 To 35
        If Range("B" & i).Value = "CIP" Then
            Range("C" & i).ClearContents
        End If
    Next i
    
    Application.ScreenUpdating = True
    
    End Sub
    Your help would be greatly appreciated!
    Attached Files Attached Files
    Last edited by mrbickelsworth; 08-19-2013 at 12:58 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How can I streamline/ speed up my code- it is currently crashing excel
    By strud in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-14-2013, 08:10 AM
  2. Excel 2010 crashing when running macros....my code?
    By dietcoke802 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2013, 05:56 PM
  3. Code running in the background- crashing computer, what is this??
    By KATIEexcel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2012, 05:44 AM
  4. Simple Macros Crashing Excel
    By Jakobi in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-12-2011, 11:19 AM
  5. Excel crashing/hanging after simple vba commands, help please!!!
    By Indiana99 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-10-2010, 07:48 AM

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