Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help setting a print range in a data sheet

loop down the sheet until the formula are not producing values that you want
printed.

then use that row to set the print range

activesheet.pageSetup.printarea = Activesheet.Range("A1:M" _
& lastrow).Address(external:=true)

--
regards,
Tom Ogilvy


"mathew" wrote in message
...
I have a spreadsheet that requires imported information from another

program.
This part works great! The sheet has a calculation range from A11 to M

3010,
with headings being in A1 to M10. All of the rows in this data range have
formulas in them because there is no telling how many rows will have data

in
them. Below this data range are more calculations, that I do not want the
user to play with, nor I can I move them. I also do not want the users,

some
of whom are not capable, to set the print range, as that has caused

several
issues. Any ideas? I'm really stuck!



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
Setting up a variable print range Gary[_5_] Excel Programming 5 July 31st 03 04:32 AM
Setting print range using VBA Dave Ramage[_2_] Excel Programming 0 July 29th 03 04:35 PM
Setting print range using VBA VBANut Excel Programming 0 July 29th 03 04:20 PM
Setting print range using VBA Ron de Bruin Excel Programming 0 July 29th 03 03:59 PM
Setting Print range Tom Ogilvy Excel Programming 3 July 25th 03 04:06 AM


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