#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Macros for printing

I have a worksheet with many columns in the following format:

Comp A Comp B Comp C Comp D

Titles DATA

The data in the worksheet is grouped into 5 levels. I would like to be able
to print one of the companies at a time for any level of information I
choose. Since I have about 20 companies at the top, I would like to insert a
button (macro) in order to print the information for that company. So... I
went to Print Setup and made the left columns repeat for any pages printed
(so the titles are on all pages). I also set it to FIT TO 1 page wide and
left blank the spot for pages tall (so it will automatically fit the level of
information that I want at that specific time - it could be only one page or
up to 6 pages tall).

Now, I highlighted colums C:E, named it something like COMPA, and tried the
following macro:

Sub PRCOMPA()
'
' PRCOMPA Macro
'
Application.Goto Reference:="COMPA"
Selection.PrintOut Copies:=1, Collate:=True
Range("C2").Select
End Sub


Problem: some of the companies correctly print 1-6 pages for whatever level
of data I'm looking at (although I generally get one blank page at the end).
Other companies print 300 pages - even they are all blank. Any idea what I
am doing wrong?? Thanks for the assistance.
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
Macros for printing Kevin W[_2_] Excel Discussion (Misc queries) 1 June 30th 08 03:10 PM
Excel 2007 macros - how to merge 5 macros together into one Sue Excel Discussion (Misc queries) 1 April 16th 08 08:36 PM
Printing macros pcor New Users to Excel 4 October 20th 06 04:29 PM
Printing subset of pages dynamically using excel macros nsgargya Excel Discussion (Misc queries) 1 September 28th 05 08:18 PM
Macros Move when Printing liz217 Excel Discussion (Misc queries) 2 August 22nd 05 03:32 PM


All times are GMT +1. The time now is 05:01 PM.

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"