Results 1 to 9 of 9

Worksheet_Change errors

Threaded View

  1. #1
    Registered User
    Join Date
    01-24-2010
    Location
    Latvia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Exclamation Worksheet_Change errors

    Please HELP!!
    There is the code:
    Private Sub Worksheet_Change(ByVal Target As Range)
    
    
    If Target.Column = 4 Then
        If Target.Cells.Offset(Row, -2) = "" Then
            MsgBox "First you need to enter second collumn value", vbOKOnly, "error!"
            Target.Cells.Clear
        End If
        
            If Not Target.Cells.Offset(Row, -1) = Number Then
            MsgBox "you cant enter value, because your have entered value to third column", vbOKOnly, "error!"
         Target.Cells.Clear
        End If
    End If
    End Sub
    there is a code, that shows a problem - messages are showed a lot of times...
    Cant understand why?
    Please help... Urgent!!!
    Thank you in advance
    Attached Files Attached Files
    Last edited by tima_amit; 01-24-2010 at 04:11 PM. Reason: add code tags

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