+ Reply to Thread
Results 1 to 9 of 9

Worksheet_Change errors

  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:
    Please Login or Register  to view this content.
    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

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: Worksheet_Change errors

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: Worksheet_Change errors

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Worksheet_Change errors

    I've edited your post this time. I strongly suggest that you take a few minutes to actually read the Forum Rules that you agreed to.

    can't se why you need code, Data validation would probably work

    Your code has undeclared variables such as Row & Number, with no value assigned. Also, I'm fairly sure that Row is reserved by Excel & should not be used as a Variable
    Last edited by royUK; 01-24-2010 at 01:41 PM.

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

    Re: Worksheet_Change errors

    thanks for post reediting
    The row and number not need to be declared, there is used reserved values

    The code work like i want, but Excel show messages multiply times, but need only one time

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Worksheet_Change errors

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

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

    Re: Worksheet_Change errors

    exe.xls is attached fail
    to see error enter value to D4 or D10 cell

  8. #8
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Worksheet_Change errors

    The problem is that by clearing the cell, you are triggering another _Change event.

    Try
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

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

    Re: Worksheet_Change errors

    Thanks a lot... you are the best

+ Reply to Thread

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