Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Setting scroll area for multiple pages

I have a workbook with 31 pages. Is there a way to set the scroll area
with one statement rather than setting it for each individual page? All
pages will have the same scroll area.

There are 15 other employees using a copy of the workbook and I need to set
the scroll area for each with a minimum of typing.


Thanks for your help.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Setting scroll area for multiple pages

Hi James,

This isn't quite one statement, but it's pretty close. Just change the
address of the scroll area to fit your needs.

Sub SetScrollArea()
Dim wksSheet As Worksheet
For Each wksSheet In ActiveWorkbook.Worksheets
wksSheet.ScrollArea = "$A$1:$E$10"
Next wksSheet
End Sub

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"JAMES SYLVESTERSR" <sylvester1501(remove wrote in
message hlink.net...
I have a workbook with 31 pages. Is there a way to set the scroll area
with one statement rather than setting it for each individual page? All
pages will have the same scroll area.

There are 15 other employees using a copy of the workbook and I need to

set
the scroll area for each with a minimum of typing.


Thanks for your help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Setting scroll area for multiple pages

James

Just a note on Rob's code.

The scrollarea property will not stick when closing and re-opening the
workbook.

May be easier to put the code in the Workbook_Open in ThisWorkbook or in
Auto_open in a general module.

Gord Dibben Excel MVP

On Tue, 10 Feb 2004 11:28:42 -0800, "Rob Bovey" wrote:

Hi James,

This isn't quite one statement, but it's pretty close. Just change the
address of the scroll area to fit your needs.

Sub SetScrollArea()
Dim wksSheet As Worksheet
For Each wksSheet In ActiveWorkbook.Worksheets
wksSheet.ScrollArea = "$A$1:$E$10"
Next wksSheet
End Sub


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 page setup/print area for multiple sheets [email protected] Excel Discussion (Misc queries) 6 October 27th 07 01:19 PM
Setting the print area in page set up to print 1 page wide by 2 pages tall EA[_2_] Excel Discussion (Misc queries) 2 July 12th 07 08:39 PM
Multiple pages after printing selected area Lynn Excel Discussion (Misc queries) 1 April 17th 06 04:28 PM
Scroll Area Paul Dusterhoft Excel Discussion (Misc queries) 8 September 21st 05 11:36 AM
how to set scroll area David W[_3_] Excel Programming 1 August 26th 03 04:56 PM


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