+ Reply to Thread
Results 1 to 4 of 4

Double Click Macro - multiple ranges with different outcomes?

  1. #1
    Registered User
    Join Date
    11-25-2014
    Location
    Lincoln, UK
    MS-Off Ver
    2010
    Posts
    19

    Double Click Macro - multiple ranges with different outcomes?

    Hi all,

    I'm after some help please on if/how I can use the 'Worksheet_BeforeDoubleClick' for two different named ranges with a different outcome on each. For the first range (Signature), I have a simple user ID entry. I then have a second range (Signature_2) which requires a user ID entry plus to copy and paste special that selected row and set font colour to black (as this cell to be 'signed' is at the end of the row once all actions taken).

    I so far have the following:

    Please Login or Register  to view this content.
    plus a separate section for the second range:

    Please Login or Register  to view this content.
    any ideas please?

    many thanks

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Double Click Macro - multiple ranges with different outcomes?

    This is a good way to use different target address

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-25-2014
    Location
    Lincoln, UK
    MS-Off Ver
    2010
    Posts
    19

    Re: Double Click Macro - multiple ranges with different outcomes?

    Hi davesexcel,

    thank you, I have added this in and from my perspective this should be working (see below), however when I double-click a cell in the "signature" range, it is carrying out the "signature_2" actions, whilst double-clicking "signature_2" is doing nothing.... any thoughts?

    Please Login or Register  to view this content.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Double Click Macro - multiple ranges with different outcomes?

    Please Login or Register  to view this content.
    Address is basically a string
    Please Login or Register  to view this content.
    is not a string, but this would be.
    Please Login or Register  to view this content.

+ 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. [SOLVED] Add 1 to target on double click, add 0.5 on shift + double click
    By MarmaladeLover in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2015, 06:59 AM
  2. Launch multiple userforms using double click
    By snewell in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2014, 10:21 AM
  3. [SOLVED] Double click event with multiple if statements
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-24-2014, 01:20 AM
  4. Changing cell properties with double click, then revert with another double click
    By mweber2525 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-01-2014, 01:40 PM
  5. Multiple word outcomes for different ranges of numbers
    By Woody3ER in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2013, 06:01 AM
  6. double click with macro
    By v2k2apj in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-23-2013, 06:17 PM
  7. [SOLVED] Double-click macro to produce different results based on different cell ranges
    By Hobsons in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-06-2013, 07:28 AM

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