Thread: Set Print Area
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Porky79 Porky79 is offline
external usenet poster
 
Posts: 19
Default Set Print Area

Hi - I have recorded a simple macro to set a print area on a
worksheet.

Range("A1:C52").Select
ActiveSheet.PageSetup.PrintArea = "$A$1:$C$52"

Rows will always remain constant (1:52) but the columns vary (columns
are added from D onwards as data is collected). I want to try and edit
it so that it will set the range automatically. Can I use the OFFSET
function to automatically set this up?

Any help will be much appreciated

thanks

Paul