Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-05-2014, 08:50 PM
exceere exceere is offline ZOOM and SCROLL of Inactive Window Windows 7 64bit ZOOM and SCROLL of Inactive Window Office 2007
Novice
ZOOM and SCROLL of Inactive Window
 
Join Date: Jun 2014
Posts: 7
exceere is on a distinguished road
Default ZOOM and SCROLL of Inactive Window

Hi,



i Know how can i get the ZOOM and SCROLL of Active window: By Using the following code

Code:
With ActiveWindow
    RowScr = .ScrollRow
    ColScr = .ScrollColumn
    WinZom = .Zoom
End With
But, how can i get the ZOOM and the SCROLL values of inactive window (or window of inactive sheet)?
Reply With Quote
  #2  
Old 07-08-2014, 12:34 PM
whatsup whatsup is offline ZOOM and SCROLL of Inactive Window Windows 7 64bit ZOOM and SCROLL of Inactive Window Office 2010 32bit
Competent Performer
 
Join Date: May 2014
Posts: 137
whatsup will become famous soon enough
Default

Hi

hm, difficult, maybe with some magic API, but you also can do it by using a workaround:

Code:
Sub Workaround()
Dim RowScr As Long
Dim ColScr As Long
Dim Winzom As Long

Application.ScreenUpdating = False
Sheets(2).Activate
With ActiveWindow
    RowScr = .ScrollRow
    ColScr = .ScrollColumn
    Winzom = .Zoom
End With
Sheets(1).Activate

Application.ScreenUpdating = True

MsgBox "RowScr: " & RowScr & vbCrLf _
    & "ColScr: " & ColScr & vbCrLf _
    & "WinZom: " & Winzom
    
End Sub
Reply With Quote
  #3  
Old 07-09-2014, 02:33 AM
exceere exceere is offline ZOOM and SCROLL of Inactive Window Windows 7 64bit ZOOM and SCROLL of Inactive Window Office 2007
Novice
ZOOM and SCROLL of Inactive Window
 
Join Date: Jun 2014
Posts: 7
exceere is on a distinguished road
Default

thank you very much Whatsup

your try it acceptable

but, can i get the window informations from inactive sheet without activating it?

Thanks
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
ZOOM and SCROLL of Inactive Window Inactive tasks and resource usage view codeghi Project 1 05-05-2014 06:59 AM
New Contact Group Icon is Gray - Inactive kdfrancis Outlook 0 04-09-2014 10:53 AM
ZOOM and SCROLL of Inactive Window Finding the Selection in an inactive worksheet BobBridges Excel Programming 4 09-30-2013 02:03 PM
Page does not actively scroll with click, hold and drag on scroll-bar jbax Word 1 05-09-2013 07:16 PM
Options Buttons become inactive clint Word 0 02-25-2010 04:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:17 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft