close

Hi,

I have a spreadsheet in which a macro runs and 'hides' any empty rows.

In the spreadsheet it is likely that first 100 rows wont be hidden, the
nxt 200 will be and the following 10 will be afterthat.

what i have noticed is that when the rows are hidden even though they
dont print they still appear to have been 'used' in the print preview
so if i try and print the document out the first section prints but the
bottom 10 ten lines dont print till page 4 (with blank pages before
these).

What i want is for the bottom section to be printed straight after the
top visible rows i.e. by totally ignoring the hidden rows.

how can i do this in vba or any other settings?--
sarcher
------------------------------------------------------------------------
sarcher's Profile: www.excelforum.com/member.php...oamp;userid=34457
View this thread: www.excelforum.com/showthread...hreadid=542376I don't think it's the hidden rows that are causing the trouble. (I've never
seen excel behave that way.)

But if you have page breaks in those hidden rows, the page breaks will still be
processed.

Could that be the problem?

My solution is to either remove the page breaks, or to copy the visible cells to
a new sheet and print from there--or even take a picture of what I want and
print that picture.

sarcher wrote:
gt;
gt; Hi,
gt;
gt; I have a spreadsheet in which a macro runs and 'hides' any empty rows.
gt;
gt; In the spreadsheet it is likely that first 100 rows wont be hidden, the
gt; nxt 200 will be and the following 10 will be afterthat.
gt;
gt; what i have noticed is that when the rows are hidden even though they
gt; dont print they still appear to have been 'used' in the print preview
gt; so if i try and print the document out the first section prints but the
gt; bottom 10 ten lines dont print till page 4 (with blank pages before
gt; these).
gt;
gt; What i want is for the bottom section to be printed straight after the
gt; top visible rows i.e. by totally ignoring the hidden rows.
gt;
gt; how can i do this in vba or any other settings?
gt;
gt; --
gt; sarcher
gt; ------------------------------------------------------------------------
gt; sarcher's Profile: www.excelforum.com/member.php...oamp;userid=34457
gt; View this thread: www.excelforum.com/showthread...hreadid=542376

--

Dave Peterson

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()