Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Moving active cell in several opened windows

Hi,

I have a worksheet opened in two windows: File:1 and File:2.
I do call
ActiveCell.Offset(1, 0).Activate
in VBA code to make active cell move one row down in the sheet. But this
occurs only in the one window, e.g. File:1.
How is it to make active cell move the same way in the other window?

Thanks.
--
Andrei.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Moving active cell in several opened windows

Aviod using Activate. It is hard to follow the code. reference cells
directly.


set wk1 = workbooks("Book1.xls).sheets("Sheet1")
set wk2 = workbooks("Book2.xls).sheets("Sheet2")


wk1.Range("A3") = wk1.Range("B4")


move down rows

for RowCount = 3 to 10
wk1.Range("A" & Count) = wk1.Range("B" & (count+1))
next RowCount


"Andrei Zakharov" wrote:

Hi,

I have a worksheet opened in two windows: File:1 and File:2.
I do call
ActiveCell.Offset(1, 0).Activate
in VBA code to make active cell move one row down in the sheet. But this
occurs only in the one window, e.g. File:1.
How is it to make active cell move the same way in the other window?

Thanks.
--
Andrei.



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
Moving left/right from active cell Kurt Barr[_2_] Excel Programming 3 January 4th 06 05:30 PM
Need Help With Moving Active Cell zero635[_5_] Excel Programming 2 July 19th 05 02:36 AM
Moving the Active cell to the left of the screen Dave Bash Excel Programming 1 December 17th 03 04:11 PM
Moving active cell after copy T Pitts Excel Programming 6 October 17th 03 08:16 PM
Moving active cell Scott Excel Programming 1 July 31st 03 05:52 PM


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