+ Reply to Thread
Results 1 to 11 of 11

De-selecting without collapsing?

  1. #1
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    De-selecting without collapsing?

    As seen in this sheet.

    I need the info to stay, I just want it to be not-visible - and collapsing is not a possibilty because I need to see keep the data in all other columns visible.

    So person 10 gets fired/quits, I deselect him in sheet 1(it can collaps if needed) - but in sheet2 & 3 I need person 10 to blacken or something that makes that person not visible in the tabel!

    Sheet.xlsx

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: De-selecting without collapsing?

    Hi,

    Does the attached help.

    It uses an old Excel4 Get.Cell macro to determine the height of rows in sheet1. This detail is recorded in the helper column M on sheet2.
    The Sheet1 Deactivate event is used to refresh the Sheet2 row height column M formulae.

    A Conditional format uses the row height to determine whether to make the font colour white.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: De-selecting without collapsing?

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Does the attached help.

    It uses an old Excel4 Get.Cell macro to determine the height of rows in sheet1. This detail is recorded in the helper column M on sheet2.
    The Sheet1 Deactivate event is used to refresh the Sheet2 row height column M formulae.

    A Conditional format uses the row height to determine whether to make the font colour white.
    That looks great.

    But I somehow can't find the macro-code itself(noob), so I cant figure out how to edit it and its conditions!?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: De-selecting without collapsing?

    Hi,

    The Excel3 Get.Cell is actually a range name called (from memory) RowHeight.

    If you look in the Formulas...Name Manager you should easily spot it. These Get... 'macros' can't be directly used in cells hence the need to use a named formula.

  5. #5
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: De-selecting without collapsing?

    Okay, I think I follow so far - the thing is when I open "VBA", there is no code present at all. So I cant re-configure the macro itself

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: De-selecting without collapsing?

    VBA code is only (as Richard said) in Ark1 code and it is event handler for Deactivate.
    To change/reconfigure main "working piece", open Name Manager (Ctrl+F3) and edit definition of named range Rowheight.
    Best Regards,

    Kaper

  7. #7
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: De-selecting without collapsing?

    Thanks


    I'm so noobish at this,

    Here

    Please Login or Register  to view this content.
    what does the 17 stand for?
    Last edited by horsefish01; 06-09-2015 at 08:15 AM.

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: De-selecting without collapsing?

    Glad to hear :-)

    So if (as I assume), that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  9. #9
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: De-selecting without collapsing?

    Well I thought I had it. Guess I didnt.

    Heres one I made, I must be missing something completly!

    Testen.xlsm

  10. #10
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: De-selecting without collapsing?

    God danmit, finally got it :-P

  11. #11
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: De-selecting without collapsing?

    Well done for persevering. These old Get.Cell formulae are not particularly intuitive, but they're a lot more powerful that the more 'up to date ) CELL() function.

    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. [SOLVED] Collapsing or Un-Collapsing Grouped Rows using VBA
    By rz6657 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2015, 12:39 PM
  2. can u name a collapsing + & - in a column?
    By ExcelNewby in forum Excel General
    Replies: 2
    Last Post: 12-30-2007, 07:52 AM
  3. [SOLVED] Expanding and Collapsing
    By QPapillon in forum Excel General
    Replies: 2
    Last Post: 03-31-2006, 04:45 PM
  4. Collapsing Rows
    By EdCPA in forum Excel General
    Replies: 2
    Last Post: 09-21-2005, 08:19 PM
  5. Collapsing Code
    By Cody in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2005, 07:05 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