Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Moving entire workbooks scroll bars


I am trying to move all the scroll bars, in my entire workbook, to the top.
When I try the normal code for moving my scroll bar: "ActiveWindow.ScrollRow
= 1" it only moves the bar on one of my tabs. Does anyone know how to code
it so it moves all of the scroll bars at once?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Moving entire workbooks scroll bars


This is a window property and so you will have to try an alternative...as
below...OR Select the cell A1 in all the sheets.

Sub Macro3()
Dim ws As Worksheet
Application.ScreenUpdating = False
Set ws = ActiveSheet
For intTemp = 1 To Sheets.Count
Sheets(intTemp).Activate
ActiveWindow.ScrollRow = 1
Next
ws.Activate
Application.ScreenUpdating = True
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"Nightshade" wrote:

I am trying to move all the scroll bars, in my entire workbook, to the top.
When I try the normal code for moving my scroll bar: "ActiveWindow.ScrollRow
= 1" it only moves the bar on one of my tabs. Does anyone know how to code
it so it moves all of the scroll bars at once?

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
scroll bars Cutearmychic Excel Worksheet Functions 1 August 22nd 08 08:53 PM
SCROLL BARS GSB Excel Discussion (Misc queries) 1 September 28th 07 05:03 PM
Scroll bars Tazzy via OfficeKB.com Excel Discussion (Misc queries) 3 December 10th 06 10:28 PM
scroll bars vqthomf Excel Programming 1 February 6th 06 12:11 PM
Scroll bars Embalmer Excel Discussion (Misc queries) 1 December 31st 05 05:05 PM


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