+ Reply to Thread
Results 1 to 2 of 2

Range specified on Before Double Click event does not work

  1. #1
    Registered User
    Join Date
    11-01-2012
    Location
    Aberdeen
    MS-Off Ver
    Excel 2016
    Posts
    60

    Range specified on Before Double Click event does not work

    Hi all my code is as follows
    Please Login or Register  to view this content.
    The purpose of the code is to double click on any cell from A43 to (A and lastrow) and copy the items of the same row to the sheet named "Form". With the code above, i wanted the double click event to be functioning only for the A43 up to A and lastrow range and on the rest of the cells do nothing if double clicked any of them. However, the range A43 to A and lastrow works with the result that i want, but for the rest of the range defined, if i double click on any cell, the sheet Form is activated without copying any cells. If i define a fixed range like A1:R42 this works and the double click does nothing. If i define a dynamic range using lastrow parameter this does not work. Im i doing something wrong?
    Any help appreciated.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Range specified on Before Double Click event does not work

    Try replacing the 3 current "Intersect" lines of code with this one:
    Please Login or Register  to view this content.
    Delete the last "End If" line of code.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. double click event on range of cells
    By Rob K in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2015, 08:27 AM
  2. Double click event a specific range
    By kmakjop in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2015, 04:35 PM
  3. [SOLVED] Before double click event with if statements (Double clicking blank cell stops bdc firing)
    By camdenpars in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-27-2014, 09:03 AM
  4. Click v double click event code
    By Greg J in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2014, 04:08 AM
  5. Double Click Event Range Cell
    By edgaryp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2013, 09:19 AM
  6. Double click event
    By CARONTE in forum Excel General
    Replies: 1
    Last Post: 06-14-2009, 03:02 AM
  7. userform label double-click goes to click event
    By John Paul Fullerton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2006, 01:00 PM

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