+ Reply to Thread
Results 1 to 3 of 3

Code to say "if the selected cell is within a range and is double clicked"...

  1. #1
    Registered User
    Join Date
    12-02-2010
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    2

    Code to say "if the selected cell is within a range and is double clicked"...

    I'm new to VBA but have some general programming knowledge. I've searched high and low and can't find the answer to this. What I'm trying to do is if I double click any cell within the range A1:A5, another macro will run. Here's what I have:

    HTML Code: 
    Thanks in advance for any help!

  2. #2
    Forum Contributor unley's Avatar
    Join Date
    11-27-2008
    Location
    South Australia
    MS-Off Ver
    MS Office 2007
    Posts
    253

    Re: Code to say "if the selected cell is within a range and is double clicked"...

    Giday diputz42, I'm a VBA beginner myself but I do know that you gotta put this code in the sheet you want to double click on.
    The rest is up to you

    Cheers



    Please Login or Register  to view this content.
    You may put in your code after Else
    Last edited by unley; 12-02-2010 at 10:04 PM.
    I'm using MS Office 2013

  3. #3
    Registered User
    Join Date
    12-02-2010
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Code to say "if the selected cell is within a range and is double clicked"...

    Thank you so much for your reply. I actually forgot to post the double click trigger I had. But I've figured it out after having seen your Intersect and Exit Sub functions. Here's what I have now. It's working like a champ! If anyone has a more efficient way of doing this, I am open to suggestions.

    HTML Code: 

+ 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