+ Reply to Thread
Results 1 to 4 of 4

Worksheet_SelectionChange - So.... what am I doing wrong...

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    Nashville
    MS-Off Ver
    2010
    Posts
    76

    Worksheet_SelectionChange - So.... what am I doing wrong...

    Hi all,

    I would like to run a macro when cells are clicked. I've placed my code into the worksheet level, but I'm not getting any activity. I don't know if I need to "turn it on" somehow or what exactly...

    Here's a couple versions of what I have, but in both cases when I switch back to the worksheet, Nothing happens. I'm trying to do a yes no questionnaire without buttons or data validation drop downs. You click the "Yes" cell, and it puts "Yes" in the reference column and changes the color of the clicked cell while "greying out" the "No" cell. And if you then go click on the "No" cell it reverses it.

    Furthermore, I would like to know how to apply this across several ranges. I'm terrible with this sort of thing in VBA, but I could make a formula in no time.

    The only difference between the versions is one calls another function, but I don't see why it can't just do the work at the event.

    Ver 1
    Please Login or Register  to view this content.
    Ver 2
    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    11-29-2010
    Location
    Nashville
    MS-Off Ver
    2010
    Posts
    76

    Re: Worksheet_SelectionChange - So.... what am I doing wrong...

    Ok, the fundamental question I was asking I fixed and I am an idiot. I was in design mode. Sorry.


    But I'm still trying to make this work as we speak, so if I've done something wrong on my code, please let me know.

  3. #3
    Forum Contributor
    Join Date
    08-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    349

    Re: Worksheet_SelectionChange - So.... what am I doing wrong...

    Is this what you're after? This is only for 1 row.
    Please Login or Register  to view this content.
    Last edited by Blokeman; 05-23-2014 at 02:45 AM.

  4. #4
    Registered User
    Join Date
    11-29-2010
    Location
    Nashville
    MS-Off Ver
    2010
    Posts
    76

    Re: Worksheet_SelectionChange - So.... what am I doing wrong...

    Quote Originally Posted by Blokeman View Post
    Is this what you're after? This is only for 1 row.
    Please Login or Register  to view this content.
    Thanks for the response Blokeman. It took some doing, but I actually did get the whole thing figured out yesterday, for all the cells. My code is below. I focused on actions off of the active cell, the one the user has clicked, and used Offsets to change things nearby.

    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. Worksheet_SelectionChange
    By anghel.michael in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2011, 02:43 PM
  2. Worksheet_SelectionChange
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-17-2011, 10:26 AM
  3. Worksheet_SelectionChange
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-04-2011, 12:22 PM
  4. Sub Worksheet_SelectionChange
    By SuitedAces in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-28-2006, 05:29 AM
  5. [SOLVED] Worksheet_SelectionChange
    By Gary''s Student in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2006, 04:50 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