+ Reply to Thread
Results 1 to 2 of 2

Hide/Unhide Rows Using Named Ranges

  1. #1
    Registered User
    Join Date
    04-06-2020
    Location
    Melbourne
    MS-Off Ver
    365
    Posts
    20

    Question Hide/Unhide Rows Using Named Ranges

    Hi All,

    Got some good help here last time so I thought I'd ask another question.

    I'm working up an Income Statement as below:
    Office XLS.png

    I've inserted arrows to hide/unhide the rows below it, essentially acting as a drop down button. The bold Header Accounts(Advertising/Bank Charges/Communications etc) have detail accounts(Marketing/Online Advertising etc) under them. Each detail account then has 3 offices under that. I've got the codes correct to hide them the way that i want, however the issue I have is it's gotten so large that if i need to add a row somewhere i need to re-code a whole lot of stuff under it.

    I'm hoping to Define Name the rows and use that in the code below, rather than using row references. I'm not having any luck making it work, if you can please let me know how to hide/unhide Named Ranges rather than the Row Numbers, or if you have any other solutions I would greatly appreciate it.

    Header Accounts:
    Please Login or Register  to view this content.
    Detail Accounts:
    Please Login or Register  to view this content.
    Last edited by Juve_Fan14; 05-11-2020 at 07:35 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Hide/Unhide Rows Using Named Ranges

    Use this syntax to hide a named range row.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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 named shapes from a list in the same sheet with VBA
    By ploup in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2019, 07:48 AM
  2. [SOLVED] Automatically Hide/Unhide named Range
    By erice in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2018, 03:55 PM
  3. Hide or show multiple named ranges of rows
    By missbogota in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2017, 11:04 AM
  4. Need to Hide/Unhide Rows and Columns Based on Several Date Ranges
    By zlorinc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2014, 04:32 PM
  5. [SOLVED] Show/hide rows based on drop down cell using named ranges
    By Stu091074 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2014, 11:00 AM
  6. Hide/unhide sheets as per list in named range
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2012, 01:14 PM
  7. Checkbox to hide/unhide named range
    By Joel Mills in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2005, 12:06 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