LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print variable page sizes


I have a sheet that varies in number of lines I want to print. Number o
columns is constant.

The number of lines is found by adding 20 to the highest number i
column A, where a list of items from 1 to x starts in A6. Eg. if x = 1
the area to print is from A1 to N37.

I will need VBA to find out what the value of MAX(A:A) is. How is thi
done?

The meaning is perhaps easiest understood by following sentence, whic
unfortunately does not make sense to VBA:
ActiveSheet.PageSetup.PrintArea = "A1:N(MAX(A:A)+20)"


NS

--
ns
-----------------------------------------------------------------------
nsv's Profile: http://www.excelforum.com/member.php...fo&userid=2650
View this thread: http://www.excelforum.com/showthread.php?threadid=53746

 
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 2007 appears to only allow you to use specified page sizes cabats Excel Discussion (Misc queries) 1 September 29th 08 06:20 PM
sorting+variable cell sizes BobG[_2_] Excel Discussion (Misc queries) 3 April 23rd 08 04:19 AM
are page sizes defined anywhere? JET Excel Discussion (Misc queries) 0 April 20th 06 06:36 PM
how do I add another page with different cell sizes? Merk Excel Worksheet Functions 1 July 29th 05 09:20 PM
Custom page sizes in Excel Mike Matheny Excel Discussion (Misc queries) 0 April 15th 05 05:15 PM


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