Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Set print area for all worksheet except first two worksheets

I would like to set the print area for all worksheets except the first
two worksheets equal to the range (b5:r36,b38:b83). Any suggestions
on how to do this?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Set print area for all worksheet except first two worksheets

Sub test2()
Dim i As Long, sName As String

For i = 3 To ActiveWorkbook.Worksheets.Count
With Worksheets(i)
sName = "'" & .Name & "'!Print_Area"
.Names.Add sName, .Range("$B$5:$R$36,$B$38:$B$83")
End With
Next

End Sub

Regards,
Peter T


wrote in message
...
I would like to set the print area for all worksheets except the first
two worksheets equal to the range (b5:r36,b38:b83). Any suggestions
on how to do this?

Thanks



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
copy print area to multiple worksheets jggsfl Excel Discussion (Misc queries) 1 January 9th 09 09:57 PM
How can I set the print area for a worksheet equal to nothing? David Excel Discussion (Misc queries) 1 November 30th 05 04:49 PM
Help with setting Print area to more than one worksheet with VBA KimberlyC Excel Programming 3 January 5th 05 12:15 AM
print a specific area within a worksheet by clicking on print? honclub Excel Worksheet Functions 1 October 29th 04 03:22 AM


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