+ Reply to Thread
Results 1 to 3 of 3

Ugh! I need what I thought would be a very simple Macro to hide rows

  1. #1
    Registered User
    Join Date
    04-29-2014
    Location
    Kingston
    MS-Off Ver
    Excel 2013
    Posts
    1

    Question Ugh! I need what I thought would be a very simple Macro to hide rows

    I'm not a VBA guy, but through other threads on here I've got my code working on the spreadsheet like we want it, with a hide/unhide, email function, and clear contents.

    Now that its working there are a few nice to haves that I can't seem to crack, the worst of which is this.

    I have it hiding rows based on what a user enters, or doesn't. So for example in Column A, if they don't enter order quantities for items in Rows 20-23, it hides them. This is just because the Excel is massive, and I've assigned a button so when they are done entering what they want to order, they click it and it collapses the whole thing by hiding all the empty rows. A Clear button undoes the hide, and clears the quantities they entered. Great.

    But, there are four vendors, so there are header rows and subtotaling for money/tax etc that a user doesn't ever enter anything for in Column A, so they don't get hidden during this. The end result works for us, but its ugly to see a header bar and a couple of subtitle bars.

    What I'm trying, and failing, is to say, if Range(A20:A23) has no quantities ( so under that vendor they've ordered nothing ) to hide the header and subtotal rows. So hide A16:A19 and A24:26. My Clear button should work to unhide them already.

    Don't know why I can't get this to work. Any ideas? I'm sure its something obvious I've overlooked.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Ugh! I need what I thought would be a very simple Macro to hide rows

    Can you submit a copy of the workbook

  3. #3
    Registered User
    Join Date
    05-23-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Ugh! I need what I thought would be a very simple Macro to hide rows

    Sounds like you simply need to apply conditional logic as you need fit.

    Something like...

    Please Login or Register  to view this content.
    I can give more details but i'm having a little trouble following exactly what you need.

+ 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. simple macro to hide or unhide rows based on a cell value
    By Russ Fuquay in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-19-2013, 06:32 PM
  2. [SOLVED] Simple macro to hide rows running very slowly
    By mbp727 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2013, 02:37 PM
  3. What I thought was simple addition!?
    By ASH2707 in forum Excel General
    Replies: 1
    Last Post: 11-06-2009, 09:41 AM
  4. Simple Formula (I thought)
    By csandi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2005, 04:50 PM
  5. Simple (I thought) lookup
    By dschaap in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-17-2005, 12:57 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