+ Reply to Thread
Results 1 to 8 of 8

Issues for defined name when double clicking

  1. #1
    Forum Contributor
    Join Date
    05-30-2013
    Location
    Isreal
    MS-Off Ver
    Excel 2010
    Posts
    191

    Issues for defined name when double clicking

    I have the following code that when I perform a double click on the cell it performs a macro.

    It worked pretty good when I had a
    If Target.Address = "$T$21" Then

    However I replace the cell reference with a defined name reference and it's not working correctly.

    Here is the new code for the double-click event:

    Please Login or Register  to view this content.
    Please advise what I'm doing wrong

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Issues for defined name when double clicking

    I believe the range for target address has to be a cell address or a sheet name with the cell address.
    What is "Get_file_contains_photos_instructions"?
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Contributor
    Join Date
    05-30-2013
    Location
    Isreal
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Issues for defined name when double clicking

    "Get_file_contains_photos_instructions"
    is a cell inside the worksheet which I gave a defined name

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Issues for defined name when double clicking

    Can you attached a desensitized workbook with the code you are using?

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Issues for defined name when double clicking

    Hi starlev

    See if this works...
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Issues for defined name when double clicking

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  7. #7
    Forum Contributor
    Join Date
    05-30-2013
    Location
    Isreal
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Issues for defined name when double clicking

    Thank you very much for your help it works.
    I tried


    If Target.Address = Range("Get_file_contains_photos_instructions").Address Then

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Issues for defined name when double clicking

    You're welcome...glad I could help. Thanks for the Rep.

+ 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 cell - copy data to new sheet - create a list from double clicking
    By kakky in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-04-2015, 11:14 PM
  2. [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
  3. Run Macro after double clicking on cell
    By robert_mim in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-01-2009, 03:28 AM
  4. Can't Open Spreadsheet by Double Clicking
    By shaker in forum Excel General
    Replies: 2
    Last Post: 12-14-2006, 07:37 PM
  5. [SOLVED] Double clicking in a Pivot Table, Please HELP
    By marko in forum Excel General
    Replies: 1
    Last Post: 12-26-2005, 11:10 PM
  6. Double Clicking
    By pnwood in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-24-2005, 06:05 PM
  7. [SOLVED] double-clicking a list entry
    By Sally Sibthorpe in forum Excel General
    Replies: 2
    Last Post: 02-25-2005, 01:06 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