Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Printing Variable Length (but Not Width) Range


My report includes a variable number of securities. I have two name
cells at the bottom of the report: one cell has a formula tha
calculates the bottom row number of the report and the other cell has
formula that calculates the row number 11 rows up from the bottom.
want to print these last 11 rows (the columns of interest are fixed).

I will paste several of my failures below. Several of these woul
compile OK, but printed the entire SS.

'ActiveSheet.PageSetup.PrintArea = Range(Cells(81, 3), Cells(92
12))
'ActiveSheet.PageSetup.PrintArea = "R81C" & "3" & ":" & "R92C"
"12" & ")"
'ActiveSheet.PageSetup.PrintArea = "="R81C" & "3" & ":" & "R92C"
"12"""
'ActiveSheet.PageSetup.PrintArea = "R81C3" & ":" & "R92C12"
'ActiveSheet.PageSetup.PrintArea = ""R81C3" & ":" & "R92C12""
'ActiveSheet.PageSetup.PrintArea = "R81C3,R92C12"

Please help.
Chuckles12

--
Chuckles12
-----------------------------------------------------------------------
Chuckles123's Profile: http://www.excelforum.com/member.php...fo&userid=1494
View this thread: http://www.excelforum.com/showthread.php?threadid=27580

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
Printing variable length pages General Specific Excel Worksheet Functions 1 January 25th 07 03:17 PM
Variable series length/range JessK Charts and Charting in Excel 1 March 3rd 06 04:02 AM
Using a Macro to Sum a Variable-Length Range (a Column) Chuckles123[_15_] Excel Programming 0 October 5th 04 06:46 AM
Using a Macro to Sum a Variable-Length Range (a Column) Chuckles123[_10_] Excel Programming 1 October 5th 04 05:54 AM
Using a Macro to Sum a Variable-Length Range (a Column) Chuckles123[_9_] Excel Programming 2 October 5th 04 12:34 AM


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