MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Apr 23rd, 2002, 09:07 AM   #1
jdowski
Board Regular
 
Join Date: Apr 2002
Location: Oxford, Connecticut USA.
Posts: 235
Default

Hi,
We have an Excel workbook that we produce every quarter that has approx. 20 charts in it. We have been experiencing problems printing it where there are blocks within a given chart(s) that do not print, not a missing data point, it looks like a rectangle super-imposed over the chart that is empty or blank. There are some people who can print the workbook without problems. I used to be able to print it fine, now I have the same problem as the others. Any thoughts ???
Thanks,

Joe
jdowski is offline   Reply With Quote
Old Apr 23rd, 2002, 03:25 PM   #2
Damon Ostrander
MrExcel MVP
 
Damon Ostrander's Avatar
 
Join Date: Feb 2002
Location: Denver, Colorado USA
Posts: 4,014
Default

Hi Joe,

Is the block also missing when you display the charts using Print Preview?



__________________
Keep Excelling.

Damon

VBAexpert Excel Consulting
(My other life: http://damonostrander.com )
Damon Ostrander is offline   Reply With Quote
Old Apr 24th, 2002, 07:42 AM   #3
jdowski
Board Regular
 
Join Date: Apr 2002
Location: Oxford, Connecticut USA.
Posts: 235
Default

No, the charts look and preview correctly, it is only a printing problem. I am not even convinced that it's an Excel problem per se. It's just that that's the program we use to generate and print all our charts. I print 100's of pages of reports from Access every month with no problem.
jdowski is offline   Reply With Quote
Old Apr 24th, 2002, 09:36 AM   #4
jrnyman
Board Regular
 
Join Date: Mar 2002
Location: Boston, MA
Posts: 105
Default

My guess is your macro processes the sheets as one giant print job. try using a short loop to print each sheet separately. Worked for me when I had a similar problem with an HP LaserJet4000N
jrnyman is offline   Reply With Quote
Old Apr 24th, 2002, 09:43 AM   #5
jdowski
Board Regular
 
Join Date: Apr 2002
Location: Oxford, Connecticut USA.
Posts: 235
Default

I don't use a macro to do the printing, I just highlight all the tabs that need to be printed and then print them. I can try printing them one at a time but then if that worked that would be a pain in the butt....?
jdowski is offline   Reply With Quote
Old Apr 24th, 2002, 09:46 AM   #6
jrnyman
Board Regular
 
Join Date: Mar 2002
Location: Boston, MA
Posts: 105
Default

You could use a really easy macro like this:

'Prints every sheet
Dim ws as Worksheet
Sub PrintMe()
For Each ws in ActiveWorkbook.Worksheets
ws.PrintOut
Next ws
End Sub

If you need to print only certain pages, let me know. You can then assign the macro to a button on the toolbar for easy access

hth
jrnyman is offline   Reply With Quote
Old Apr 24th, 2002, 09:50 AM   #7
jdowski
Board Regular
 
Join Date: Apr 2002
Location: Oxford, Connecticut USA.
Posts: 235
Default

Yes, actually we don't print every sheet. Some sheets are just links or data sheets where raw data comes in either through MS Query are direct linking. So how would I specify which sheets I want printed ??

Thanks,

Joe
jdowski is offline   Reply With Quote
Old Apr 24th, 2002, 09:54 AM   #8
jrnyman
Board Regular
 
Join Date: Mar 2002
Location: Boston, MA
Posts: 105
Default

There's a lot of different ways to do this. If I asked how you differentiate the sheets you need from the others, what would you say?
jrnyman is offline   Reply With Quote
Old Apr 24th, 2002, 10:27 AM   #9
jrnyman
Board Regular
 
Join Date: Mar 2002
Location: Boston, MA
Posts: 105
Default

In general, here's some options:
(1) if you know specific names
(2) if they are in a certain order
(3) If a certain cell on each page is special

examples of modifying the scrip

For Each ws in ActiveWorkbook.Worksheets
If ws.Index >0 and ws.Index <11 then
ws.Printout
end if 'Prints the first 10 tabs
If ws.name = "A Certain tab Name" then
ws.printout
end if 'prints a tab if it's name is something special
If ws.Range("A1").Value = "Print" then
ws.printout
end if 'Checks cell A1 on each page

What I do is reorder my sheets at the end of the running some macros. Since I always know the name of the first and last sheet I need to print, i use this setup.

Dim ws as Worksheet
Dim FirstPage as Integer, LastPage as Integer
Sub PrintMe()
FirstPage = Sheets("FirstToPrint").Index
LastPage = Sheets("LastToPrint").Index
For Each ws in Activeworkbook.Worksheets
If ws.index >= FirstPage and ws.index <= LastPage then
ws.Printout
End If
Next ws
End Sub
jrnyman is offline   Reply With Quote
Old Apr 24th, 2002, 11:20 AM   #10
jdowski
Board Regular
 
Join Date: Apr 2002
Location: Oxford, Connecticut USA.
Posts: 235
Default

Thank you very much for you reply journeyman. I think your last method may work. I can't use the "value of cell A1" because half of the sheets are chart sheets. So say then that the workbooks has 20 sheets. 4 sheets are data links or whatever, of the 16 remaining, 8 are full chart sheets, the other eight are worksheets with small charts embedded on them. If I order all 20 sheets with the 4 I don't want either at the very end and then specify my print worksheet(s) range by giving naming chart sheet 1 as "beginning" and worksheet 16 as "ending" of range I can let it go at that??
jdowski is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 08:09 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes