Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Set group of wksheets to top of page

Hi,

Is there a way to set a group of worksheets to the top of the page without
activating each individual worksheet. Here is what I have but it doesn't
work unless I activate each sheet.

FirstIndex = Firstpg.Index
LastIndex = Lastpg.Index

Set ws = Nothing
For Each ws In wbkCopyTo.Worksheets
'set worksheet to top of page
If ws.Index FirstIndex Then
If ws.Index < LastIndex Then
ws.Activate
Application.GoTo Reference:="R4C7"
ActiveWindow.SmallScroll Up:=3
ActiveWindow.ScrollColumn = 1
End If
End If
Next

--
Thanks for your help.
Karen53
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Set group of wksheets to top of page

Hi Karen,

I do not believe that a selection can be made
on an inactive sheet; therefore, in this case,
selection of the sheets is necessary.



---
Regards.
Norman


"Karen53" wrote in message
...
Hi,

Is there a way to set a group of worksheets to the top of the page without
activating each individual worksheet. Here is what I have but it doesn't
work unless I activate each sheet.

FirstIndex = Firstpg.Index
LastIndex = Lastpg.Index

Set ws = Nothing
For Each ws In wbkCopyTo.Worksheets
'set worksheet to top of page
If ws.Index FirstIndex Then
If ws.Index < LastIndex Then
ws.Activate
Application.GoTo Reference:="R4C7"
ActiveWindow.SmallScroll Up:=3
ActiveWindow.ScrollColumn = 1
End If
End If
Next

--
Thanks for your help.
Karen53


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
print a new page for each group Ben Excel Worksheet Functions 5 August 12th 09 02:29 AM
a name in my wksheets to schedule it to b hilited in 90 days ? Excel green 1 Excel Discussion (Misc queries) 1 December 17th 08 05:29 PM
Save Sheets as Separate Wksheets ToddEZ Excel Programming 3 May 4th 07 06:36 PM
Can changes to a worksheet be applied to all wksheets in wkbook? SandyM Excel Worksheet Functions 1 September 18th 05 06:21 PM
Macros in Personal.xls don't show up in other wksheets bethg7 Setting up and Configuration of Excel 4 August 2nd 05 01:40 AM


All times are GMT +1. The time now is 02:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"