LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,358
Default Automatically hide/unhide rows

I want the capability of having multiple lines on the top of my worksheet,
but if a line is NOT going to be populated, then the row will be hidden,
preferably both while viewing as well as when printing, but at least when
printing.

Here is the scenario:
This is for monitoring invoices applied against purchase orders, each
worksheet is its own purchase order. Each purchase order is made up of 1 or
more line items.
Row 1 will have report header information, to only print on page 1.
Row 2 will have report total information, again to only print on page 1.
Rows 3-10 (currently) have room for up to 16 separate line items (line items
1 & 2 on row 3, line items 3 & 4 on row 4, etc.)
Row 11: Blank buffer line.
Rows 12-13 will have the headers for recording an invoice. If the document
spills to multiple pages, these are the ONLY headers I want on subsequent
pages.
Rows 14+ will have the detailed information for invoices applied to the
invoice.

I have some hidden columns that allows the worksheet to tabulate amount
applied to each line item, amount remaining on each line item, if a line item
was closed early, or modified to a new line item (including, hypothetically,
i have a line item that was originally set for $10,000.00, currently having
applied $2,000.00, we need to reduce the line item by $3,000.00 to free up
some budgeting for another purchase order, we actually have to close the
current line, and would open the remaining balance on a new line of
$5,000.00). All this works wonderfully well. Because the invoice rows 14+
have some columns with calculations, I am even using the Print Area with some
offsetting to ensure it prints only valid data, and not 'blank' cells that
still have formulas. (I have had no luck of the formulas always coming down
from the line above).

What I want (sorry to be long winded), is for Rows 4-10 to be able to be
'collapsed' when not in use. If I only have 1 or 2 line items, I don't want 7
rows of white space to be viewed (much less printed). I do have the worksheet
protected to ensure not writing over formulas, and it gets monotonous having
to unprotect, hide/unhide rows (or change row height), then reprotecting the
workbook.

Thanks in advance for any help that may be had.

--
John C
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically hide/unhide rows JStiehl Excel Worksheet Functions 6 April 26th 10 01:29 PM
Enabling option „Format rows“ to hide/unhide rows using VBA-code? ran58 Excel Discussion (Misc queries) 0 July 28th 09 03:46 PM
Hide Rows (Current Date) / Unhide Rows Joe K. Excel Programming 1 October 10th 07 05:37 PM
Automatically hide/unhide columns laststraw Excel Discussion (Misc queries) 11 September 12th 07 12:54 PM
Hide/Unhide rows lennyx2 Excel Programming 3 May 24th 05 07:11 PM


All times are GMT +1. The time now is 01:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"