#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Printing

I need the ability of printing everything in Column A next to everything in
Column Z without printing all the columns in between. How do I do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default Printing

Hide columns B to Y, then select A to Z and print. Need the code?


Bill


"rachelk" wrote:

I need the ability of printing everything in Column A next to everything in
Column Z without printing all the columns in between. How do I do this?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default Printing

You can hide the colums you don't want to print.


rachelk wrote:
I need the ability of printing everything in Column A next to everything in
Column Z without printing all the columns in between. How do I do this?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Printing

Yes, please

"Bill Pfister" wrote:

Hide columns B to Y, then select A to Z and print. Need the code?


Bill


"rachelk" wrote:

I need the ability of printing everything in Column A next to everything in
Column Z without printing all the columns in between. How do I do this?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default Printing

Sub PrintSomeStuff()
Dim wkb As Workbook
Dim wks As Worksheet

Set wkb = ThisWorkbook
Set wks = wkb.ActiveSheet

wks.Columns("B:Y").Hidden = True
wks.Columns("A:Z").PrintOut
wks.Columns("B:Y").Hidden = False

End Sub



"rachelk" wrote:

Yes, please

"Bill Pfister" wrote:

Hide columns B to Y, then select A to Z and print. Need the code?


Bill


"rachelk" wrote:

I need the ability of printing everything in Column A next to everything in
Column Z without printing all the columns in between. How do I do this?



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Printing

WHERE DO YOU ENTER THE CODE SO I DO NOT KEEP HAVING TO HIDE THE ONE COLUMN I
DO NOT WANT PRINTED?

THANKS

"Bill Pfister" wrote:

Sub PrintSomeStuff()
Dim wkb As Workbook
Dim wks As Worksheet

Set wkb = ThisWorkbook
Set wks = wkb.ActiveSheet

wks.Columns("B:Y").Hidden = True
wks.Columns("A:Z").PrintOut
wks.Columns("B:Y").Hidden = False

End Sub



"rachelk" wrote:

Yes, please

"Bill Pfister" wrote:

Hide columns B to Y, then select A to Z and print. Need the code?


Bill


"rachelk" wrote:

I need the ability of printing everything in Column A next to everything in
Column Z without printing all the columns in between. How do I do this?

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 132
Default Printing


The line "wks.Columns("B:Y").Hidden = True" hides columns "B" through "Y".
Is that what you're asking?



"LEOPARDSHIDEAWAY" wrote:

WHERE DO YOU ENTER THE CODE SO I DO NOT KEEP HAVING TO HIDE THE ONE COLUMN I
DO NOT WANT PRINTED?

THANKS

"Bill Pfister" wrote:

Sub PrintSomeStuff()
Dim wkb As Workbook
Dim wks As Worksheet

Set wkb = ThisWorkbook
Set wks = wkb.ActiveSheet

wks.Columns("B:Y").Hidden = True
wks.Columns("A:Z").PrintOut
wks.Columns("B:Y").Hidden = False

End Sub



"rachelk" wrote:

Yes, please

"Bill Pfister" wrote:

Hide columns B to Y, then select A to Z and print. Need the code?


Bill


"rachelk" wrote:

I need the ability of printing everything in Column A next to everything in
Column Z without printing all the columns in between. How do I do this?

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default Printing

You can enter the code in

Private Sub Workbook_BeforePrint(Cancel As Boolean)




LEOPARDSHIDEAWAY wrote:
WHERE DO YOU ENTER THE CODE SO I DO NOT KEEP HAVING TO HIDE THE ONE COLUMN I
DO NOT WANT PRINTED?

THANKS

"Bill Pfister" wrote:

Sub PrintSomeStuff()
Dim wkb As Workbook
Dim wks As Worksheet

Set wkb = ThisWorkbook
Set wks = wkb.ActiveSheet

wks.Columns("B:Y").Hidden = True
wks.Columns("A:Z").PrintOut
wks.Columns("B:Y").Hidden = False

End Sub



"rachelk" wrote:

Yes, please

"Bill Pfister" wrote:

Hide columns B to Y, then select A to Z and print. Need the code?


Bill


"rachelk" wrote:

I need the ability of printing everything in Column A next to everything in
Column Z without printing all the columns in between. How do I do this?


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
Excel 2003 printing problem--printing 1 document on 2 pages Bons Excel Discussion (Misc queries) 0 December 24th 09 04:15 PM
Excel Printing --Borders are not printing on the same page as data Stup88 Excel Discussion (Misc queries) 1 August 7th 07 09:34 AM
Printing a heading on each new page when printing Brian Excel Discussion (Misc queries) 3 November 15th 06 05:22 PM
Enable Double sided printing contiuously when printing multiple s. Lee Excel Discussion (Misc queries) 1 November 27th 04 01:58 AM
Printing? Worksheets not printing the same on multiple pc's! 43fan Excel Programming 2 April 29th 04 02:34 PM


All times are GMT +1. The time now is 10:08 PM.

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"