Results 1 to 4 of 4

Ambiguous name detected: Worksheet_BeforeDoubleClick

Threaded View

  1. #1
    Registered User
    Join Date
    12-02-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    51

    Ambiguous name detected: Worksheet_BeforeDoubleClick

    hi all

    Im having trouble with the follow error 'Ambiguous name detected: Worksheet_BeforeDoubleClick' I am trying to build a macro so that when i click on cell D6 macro1 runs & then when I click on D7 another macro runs.

    Below is the code that I wrote, does anyone know how to incorporate both codes so that I dont have the above error coming up? Please remember I do not want both macros to be run at the same time - I only want one macro to run when a particular cell is double clicked

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    
    Dim WB1 As Worksheet: Set WB1 = Sheets("Activity")
    Cancel = True
    
    Call Progress
    
    End Sub
    
    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    
    Dim WB1 As Worksheet: Set WB1 = Sheets("Activity")
    Cancel = True
    
    Call Progress1
    
    End Sub
    Thanks in advance
    Last edited by ConfusedaboutVBA; 03-24-2013 at 08:39 PM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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