Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default windows.sheets ?

Hello,

I've got 2 windows of the same sheet (same workbook)
This is the way excel gives you the top, the middle and the bottom of a same
sheet.

When I scroll the columns, and select an other window, it foolows the
scroll:
with ActiveWorkbook
..windows(1).ScrollColumn = .windows(2).ScrollColumn
end with

this works fine.
The point is my workbook doesn't have only one sheet, and I would like to
access the right one !
(of course)

I need something like:
.windows(i).scrollcolumn(of sheets1)
or:
.windows(i).Sheet1.scrollcolumn

of course, this is not a known syntax ! it only knows windows.activesheet
Excel has got the data (the scrollcolumn of sheet1 in the window(i) ) inside
its head, how do I get it ?

--
dc


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default windows.sheets ?

Sub ActivateSheet()
Dim wb As Workbook
Dim ws As Worksheet
Set wb = ThisWorkbook
Set ws = wb.Sheets(1)
ws.Activate
End Sub


"David C." schreef in bericht
...
Hello,

I've got 2 windows of the same sheet (same workbook)
This is the way excel gives you the top, the middle and the bottom of a

same
sheet.

When I scroll the columns, and select an other window, it foolows the
scroll:
with ActiveWorkbook
.windows(1).ScrollColumn = .windows(2).ScrollColumn
end with

this works fine.
The point is my workbook doesn't have only one sheet, and I would like to
access the right one !
(of course)

I need something like:
.windows(i).scrollcolumn(of sheets1)
or:
.windows(i).Sheet1.scrollcolumn

of course, this is not a known syntax ! it only knows windows.activesheet
Excel has got the data (the scrollcolumn of sheet1 in the window(i) )

inside
its head, how do I get it ?

--
dc




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default windows.sheets ?

well, this does not reply to the question at all...
wrong message ?



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
Can I unstack multiple spread sheets in Windows XP? Jocelyn[_2_] Excel Worksheet Functions 1 July 27th 09 05:08 PM
different sheets in separated windows Lamb Chop[_2_] Excel Discussion (Misc queries) 2 June 13th 08 02:50 PM
viewing two spead sheets in two separate windows arad Excel Discussion (Misc queries) 3 September 12th 07 12:56 PM
Consolidating Excel sheets within Office Binder in Windows 2000 Felix Excel Discussion (Misc queries) 3 July 10th 07 04:26 PM
Grouped Sheets - Windows Arrange JMay Excel Discussion (Misc queries) 8 November 15th 06 12:53 AM


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