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: 21
Default Printing Macro

Hi There,

I have 6 tables on a worksheet - these are ranges:

B2:I22 ; B25:I45 ; B48:I68 ; B71:I91 ; B94:I114 ; B117:I137

Now, sometimes I will have notes at the side of the table - I put these into
column J, so that any notes for the first tabe would appear in a cell in the
range J2:J22 ; any notes for the second table would appear in a cell in the
range J25:J45 ; etc.

What I want is a macro that will print each of the 6 tables above on a
separate sheet (landscape, centred horizontally & vertically, with Row &
column Headings), and if the table has notes in column J, these should be
displayed on the same sheet. I.e. if the table does not have any notes in
column J, then I don't want to see column J appear in the printout, as this
reduces unneccessarily the size of the text in the printout.

So I need a macro which prints out each table, but before doing so does a
search on the relative range in Column J (for that table) and decides whether
there are notes in that range and therefore whether to include column J in
the printout for that table.

Thanks for any help,

Gary T.
 
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
Printing Macro how do I pano Excel Worksheet Functions 1 January 23rd 07 11:41 AM
Printing Macro Ram Excel Discussion (Misc queries) 0 December 7th 06 01:01 AM
Macro for printing Ewout Excel Worksheet Functions 1 September 23rd 06 11:33 PM
printing using a macro John Excel Discussion (Misc queries) 1 June 14th 06 01:20 PM
Printing in a Macro Don Guillett[_4_] Excel Programming 0 August 8th 03 01:11 AM


All times are GMT +1. The time now is 03:47 AM.

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"