Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 386
Default Possible Print If macro?

Hi,

Could some one tell me is it possible to have a macro that will print sheets
if there is something written in the selected print area?

Background info:

I have 10 tabs each with two tables, so 20 potential sheets to print.
Sometimes the all 20 sheets will contain info, sometimes maybe only 8.
In every cell of every sheet there are if(cell="";"";index match etc) type
formulas to fill in data from other sources - the reason i say this is that
the cells are not completely empty they may just not display any information.

I can do a macro to print all 20 sheets however there is no point in
printing the empties. Is it possible to have a macro that will print
whatever sheets contain some info? (which tables have at least one entry for
which the if(cell="") is false and therefore returns info.

Thanks
LiAD
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Possible Print If macro?

Check the number of blank cells aganist the cells in the range. Something like

If Application.Countblank(Range("E1:E10")) < 10 then
'Print
End If

--
If this post helps click Yes
---------------
Jacob Skaria


"LiAD" wrote:

Hi,

Could some one tell me is it possible to have a macro that will print sheets
if there is something written in the selected print area?

Background info:

I have 10 tabs each with two tables, so 20 potential sheets to print.
Sometimes the all 20 sheets will contain info, sometimes maybe only 8.
In every cell of every sheet there are if(cell="";"";index match etc) type
formulas to fill in data from other sources - the reason i say this is that
the cells are not completely empty they may just not display any information.

I can do a macro to print all 20 sheets however there is no point in
printing the empties. Is it possible to have a macro that will print
whatever sheets contain some info? (which tables have at least one entry for
which the if(cell="") is false and therefore returns info.

Thanks
LiAD

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 to hide rows with a certain cell empty then set print area and print tahrah Excel Programming 12 January 9th 07 03:47 AM
Pivot Table macro to set print area and print details of drill down data Steve Haskins Excel Discussion (Misc queries) 2 December 28th 05 04:59 PM
Create a print macro that would automatically select print area? wastedwings Excel Worksheet Functions 7 August 22nd 05 10:36 PM
Why does macro speed slow after Excel Print or Print Preview? Larry A[_3_] Excel Programming 6 May 16th 05 11:22 AM
Need Help w/ Print Macro to Print All Visible Sheets (including Charts) in a Workbook will Excel Programming 3 September 23rd 04 08:05 PM


All times are GMT +1. The time now is 07:38 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"