+ Reply to Thread
Results 1 to 3 of 3

ambiguous name detected : Worksheet_beforedoubleclick

  1. #1
    Registered User
    Join Date
    10-19-2011
    Location
    sydney australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Post ambiguous name detected : Worksheet_beforedoubleclick

    hi.. i need help on how to fix the code below..

    Please Login or Register  to view this content.
    Last edited by Leith Ross; 10-19-2011 at 03:03 AM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: ambiguous name detected : Worksheet_beforedoubleclick

    Hello eina28,

    Part of your problem was you had duplicate events. They were empty, no code in them, but the Declaration lines were there. I removed those and added the Option Explicit statement. This will inform you whenever you have not declared a variable or another variable by that name has been declared. Here is the cleaned code. Delete all the other code and paste this code in its place.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: ambiguous name detected : Worksheet_beforedoubleclick

    I think you better use validation to prevent duplicate entries e.g in cell A5:

    Validation/
    custom/
    PHP Code: 
    =countif(A:A,A5)=
    But if you stick to VBA, the worksheet_change event can be reduced to :

    Please Login or Register  to view this content.
    Last edited by snb; 10-19-2011 at 05:08 AM.



+ 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