Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default PageBreak Macro with Hidden rows

I would like to create a macro for a report that I am creating. The report
is linked to a survey and the yes and no questions will hide and unhide rows
within the report. I would like to generate a pagebreak macro that will only
show the unhidden rows in the report. Right now the rows that are hidden
print a blank page. Can any one assist me?

Thank you,
dAniel
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default PageBreak Macro with Hidden rows

hi,
this will unhide all the rows in your sheet

Sub Macro1()
Cells.Select
Selection.EntireRow.Hidden = False
Range("A1").Select
End Sub

--
David


"Daniel R. Young" wrote:

I would like to create a macro for a report that I am creating. The report
is linked to a survey and the yes and no questions will hide and unhide rows
within the report. I would like to generate a pagebreak macro that will only
show the unhidden rows in the report. Right now the rows that are hidden
print a blank page. Can any one assist me?

Thank you,
dAniel

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default PageBreak Macro with Hidden rows

David
I actually do not want to unhide all the rows. My report only shows the
questions that are deficient. So the hidden rows are questions that meet the
standards and are addequete, so I have no recommendations for them. I would
like those to remain hidden and print only those that are visible/unhidden.
The issue I face is when I did the page breaks for each page (255 total) the
hidden rows will still print as a blank page. I would like to deactivate
this and make sure that only the unhidden rows print.

Any ideas?

Thank you,

Daniel

"David" wrote:

hi,
this will unhide all the rows in your sheet

Sub Macro1()
Cells.Select
Selection.EntireRow.Hidden = False
Range("A1").Select
End Sub

--
David


"Daniel R. Young" wrote:

I would like to create a macro for a report that I am creating. The report
is linked to a survey and the yes and no questions will hide and unhide rows
within the report. I would like to generate a pagebreak macro that will only
show the unhidden rows in the report. Right now the rows that are hidden
print a blank page. Can any one assist me?

Thank you,
dAniel

Reply
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
Macro code to hide rows and not calculate hidden rows bradmcq Excel Discussion (Misc queries) 0 September 1st 09 12:38 AM
Cant move pagebreak in PageBreak View in Excel2003 Vasanthan Excel Worksheet Functions 1 August 22nd 07 03:28 PM
Can I keep rows together so they don't separate at a pagebreak? rita Excel Discussion (Misc queries) 6 January 23rd 07 11:36 PM
hidden rows when running a macro cprema Excel Programming 1 November 10th 04 11:01 AM
PAGEBREAK-MACRO Jay Dean Excel Programming 2 September 19th 03 12:40 PM


All times are GMT +1. The time now is 05:43 AM.

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

About Us

"It's about Microsoft Excel"