Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Select corresponding row on another worksheet

Hello

I'm trying to write some code that will select the corresponding row on
another worksheet to the current row on the existing worksheet, and I'm
failing miserably. Can someone help me please.

Thankyou
Aehan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 477
Default Select corresponding row on another worksheet

In a standard module enter:

Sub tester()
Application.ScreenUpdating = False
MyRow = ActiveCell.Row
Sheets("Sheet1").Activate
Rows(MyRow).Select
Application.ScreenUpdating = True
End Sub

Create a forms button to run tester


"aehan" wrote:

Hello

I'm trying to write some code that will select the corresponding row on
another worksheet to the current row on the existing worksheet, and I'm
failing miserably. Can someone help me please.

Thankyou
Aehan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Select corresponding row on another worksheet



Dim rng as Range
set rng = ActiveCell
Application.Goto worksheets("Sheet2").rows(rng.row), true

--
Regards,
Tom Ogilvy


"aehan" wrote:

Hello

I'm trying to write some code that will select the corresponding row on
another worksheet to the current row on the existing worksheet, and I'm
failing miserably. Can someone help me please.

Thankyou
Aehan

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Select corresponding row on another worksheet

Thankyou, both Tom and Jim, both solutions work and you have really helped me.

Aehan

"Tom Ogilvy" wrote:



Dim rng as Range
set rng = ActiveCell
Application.Goto worksheets("Sheet2").rows(rng.row), true

--
Regards,
Tom Ogilvy


"aehan" wrote:

Hello

I'm trying to write some code that will select the corresponding row on
another worksheet to the current row on the existing worksheet, and I'm
failing miserably. Can someone help me please.

Thankyou
Aehan

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
Select a worksheet Phil Excel Worksheet Functions 1 June 6th 10 03:24 AM
Can I create a worksheet menu to select each other worksheet pippagrace Excel Discussion (Misc queries) 4 June 23rd 06 01:28 PM
Select a cel on a worksheet Tadashii[_5_] Excel Programming 1 February 17th 06 03:09 PM
In Excel 2000, How do you select the whole of a worksheet (Select. Rascal Excel Discussion (Misc queries) 1 March 5th 05 12:03 AM
In Excel 2000, How do you select the whole of a worksheet (Select. Rascal Excel Discussion (Misc queries) 1 March 4th 05 11:59 PM


All times are GMT +1. The time now is 11:00 PM.

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"