Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Code for Printing Discontiguous Ranges

Make sure you don't have any manual page breaks in that range (even in the
hidden columns).

And make sure your set the print to only one page wide (or one page tall??).

GoFigure wrote:

Does anyone have a, or some, suggestions? I'd appreciate any.

Many thanks,

- Al

GoFigure Wrote:
Perhaps I'm not coding this correctly. I have tried your sugestion, Tom,
but it still results in all the columns in the range, including the
hidden ones.


Code:
--------------------
Sheets(sThisSheetName).Columns("B:J").Hidden = True ' Hide Jan - Mar

Sheets(sThisSheetName).Columns("M:U").Hidden = True ' Hide Apr - Jun
PA_PrintRange = "$K10:$W52" ' K:L = Q1 totals and V:W = Q2 totals

--------------------


This results in two pages:

- Page 1 - Q1 totals, Apr, May, June
- Page 2 - Q2 totals


- Al


--
GoFigure
------------------------------------------------------------------------
GoFigure's Profile: http://www.excelforum.com/member.php...fo&userid=4274
View this thread: http://www.excelforum.com/showthread...hreadid=493043


--

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
Deselect a cell in a discontiguous range Excel_VBA_Newb Excel Discussion (Misc queries) 3 October 8th 09 09:02 PM
Is it possible to plot discontiguous cells? Peter Bernadyne Charts and Charting in Excel 8 May 11th 06 09:45 PM
Is it possible to plot discontiguous cells? Peter Bernadyne Excel Discussion (Misc queries) 0 May 9th 06 10:32 PM
discontiguous ranges in charts Pilgrim Excel Programming 1 July 3rd 04 05:53 PM
Defining a discontiguous Range object Charley Kyd[_2_] Excel Programming 15 December 30th 03 12:33 AM


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