+ Reply to Thread
Results 1 to 2 of 2

VBA Checkboxes Hide/Unhide Rows - Rows are Moved Around - How to Easily Change References?

  1. #1
    Registered User
    Join Date
    11-03-2020
    Location
    Bunker Hill, WV
    MS-Off Ver
    Microsoft Office Home and Student 2019
    Posts
    1

    Question VBA Checkboxes Hide/Unhide Rows - Rows are Moved Around - How to Easily Change References?

    Hi there,

    This may be a silly question and there may be an easy way to do this that I'm not aware of, as I am new to excel and VBA. I have a workbook that has multiple sheets. The first sheet is "fillable" in that it has a series of questions and the answers are then mapped to fill out forms on the rest of the tabs. There are also checkboxes on the first "fillable" sheet that reference rows in later tabs and these checkboxes hide/unhide the rows. On the forms that the answers are mapped to, I have had to make major changes and the result is that all the checkboxes are now referencing rows that don't contain what I want to hide/unhide. I am wondering if there is a quick, efficient way to get excel to recognize that these rows have been shifted around or a way to make changes quickly or if I need to go into each individual checkbox's VBA code and change the row numbers individually? Here's an example of the coding for a checkbox:

    Please Login or Register  to view this content.
    Because I'm a newbie, I may have set the checkboxes up in such a way that the only option is to go and change them all individually which is okay (not great, because there are ~80 affected boxes), but if that's the case and there's a better way to set them up please let me know. Thanks for any input/help!!
    Last edited by kbohrer; 11-03-2020 at 12:00 PM.

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: VBA Checkboxes Hide/Unhide Rows - Rows are Moved Around - How to Easily Change Referen

    There is no easy way to automate updating your code.

+ 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] Hide / Unhide Rows on Change
    By plans in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2019, 03:39 PM
  2. [SOLVED] Worksheet Change Hide/Unhide rows automatically
    By Ollie7957 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-05-2016, 02:01 PM
  3. [SOLVED] Help Needed with Checkboxes to Hide or Unhide Rows
    By dgibney in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-25-2014, 11:39 AM
  4. [SOLVED] Hide/unhide rows with checkboxes
    By mixer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-05-2014, 03:58 PM
  5. Replies: 1
    Last Post: 01-25-2012, 04:29 AM
  6. Using Toggle Button to hide/unhide rows that may change
    By jmpatrick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2011, 09:48 AM
  7. [SOLVED] Can't hide/unhide rows under worksheet change event?
    By Don Wiss in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-24-2005, 07:02 PM

Tags for this Thread

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