Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
tom tom is offline
external usenet poster
 
Posts: 570
Default VBA - Print Selection

In an excel workbook I have columns A - J, I want a macro that will select a
print range based on..... column "G". Column G will either be populated with
(blank) or "Bring In". Once sorted the rows with Bring In will be on the top
of the sheet, which is the rows that I want printed.

Example... If the first 38 rows have "Bring In" in column "G" I want the
print range A1:J38 to print.

Any ideas?

TFTH,
Tom
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default VBA - Print Selection

The VBA is a recorder of steps. Turn it on and record the processes you
would like to have repeted over and over ,then turn it off.
When you have finished your macro TEST IT. Then polish it up using VBE if
you have minor changes you need to make.
Next attach your sequence to a Icon.
Have fun.

WLM
--
William<"M"
Using 2007


"tom" wrote:

In an excel workbook I have columns A - J, I want a macro that will select a
print range based on..... column "G". Column G will either be populated with
(blank) or "Bring In". Once sorted the rows with Bring In will be on the top
of the sheet, which is the rows that I want printed.

Example... If the first 38 rows have "Bring In" in column "G" I want the
print range A1:J38 to print.

Any ideas?

TFTH,
Tom

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default VBA - Print Selection

Maybe you can drop the sort and use data|filter|autofilter (add a header row if
you don't have one).

Then filter on that column G to show just the values you want.

Print those visible rows

And data|filter|Show all
to see everything.



tom wrote:

In an excel workbook I have columns A - J, I want a macro that will select a
print range based on..... column "G". Column G will either be populated with
(blank) or "Bring In". Once sorted the rows with Bring In will be on the top
of the sheet, which is the rows that I want printed.

Example... If the first 38 rows have "Bring In" in column "G" I want the
print range A1:J38 to print.

Any ideas?

TFTH,
Tom


--

Dave Peterson
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
"Print Selection" doesn't print beyond automatic page breaks Andre Excel Discussion (Misc queries) 3 October 30th 06 09:30 PM
CHANGE DEFAULT PRINT TO SELECTION INSTEAD OF ACTIVE WORKSHEET FRED SMITH New Users to Excel 2 June 27th 06 07:43 PM
Print each drop-down list selection Corey Excel Discussion (Misc queries) 0 May 18th 06 08:39 PM
How can I print frozen panes to appear above print selection in Ex Snr Franco Excel Discussion (Misc queries) 1 April 2nd 06 03:06 PM
print area selection slows excel, formula for hiding rows?? sbrimley Excel Discussion (Misc queries) 1 March 21st 06 11:26 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"