Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Go To Worksheet.Cell Referencing Another Worksheet.Cell

Is there a way to go to a cell in another worksheet that has an identical
value of a cell in another worksheet? Example:

Current cell location: worksheet1.A1

Reference cell location: worksheet1.A2

Cell to go to: worksheet2.[same data that is located in worksheet1.A1]

Any help with this is greatly appreciated. Thanks.

G
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Go To Worksheet.Cell Referencing Another Worksheet.Cell

Read out this post http://www.ozgrid.com/VBA/find-method.htm

To create a Visual Basic Sub procedure, follow these steps:
Start Excel.
Press ALT+F11 to start the Visual Basic editor.
On the Insert menu, click Module.
Enter the Sub procedure code in the module sheet.
Press ALT+F11 to return to Excel.
To run a Visual Basic Sub procedure, follow these steps:
On the Tools menu, point to Macro and then click Macros.
Select the macro (Sub procedure) that you want and then click Run.

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


"garyh" wrote:

Is there a way to go to a cell in another worksheet that has an identical
value of a cell in another worksheet? Example:

Current cell location: worksheet1.A1

Reference cell location: worksheet1.A2

Cell to go to: worksheet2.[same data that is located in worksheet1.A1]

Any help with this is greatly appreciated. Thanks.

G

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Go To Worksheet.Cell Referencing Another Worksheet.Cell

Say we have some value in the activecell in Sheet1 and want to go to the cell
with the same value in Sheet2:

Sub GoHither()
Dim v As Variant
Dim cel As Range
v = ActiveCell.Value
Dim s As Worksheet
Set s = Sheets("Sheet2")
For Each cel In s.UsedRange
If cel.Value = v Then
s.Activate
cel.Select
Exit Sub
End If
Next
End Sub

--
Gary''s Student - gsnu200840


"garyh" wrote:

Is there a way to go to a cell in another worksheet that has an identical
value of a cell in another worksheet? Example:

Current cell location: worksheet1.A1

Reference cell location: worksheet1.A2

Cell to go to: worksheet2.[same data that is located in worksheet1.A1]

Any help with this is greatly appreciated. Thanks.

G

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
referencing a cell in another worksheet Shannan Excel Discussion (Misc queries) 5 December 22nd 09 07:00 PM
Referencing a cell from another worksheet Shannan Excel Discussion (Misc queries) 3 November 20th 09 10:43 AM
Referencing a cell to another worksheet neostar77 Excel Discussion (Misc queries) 1 October 13th 08 09:23 AM
Referencing a worksheet name to a cell... QuietMan Excel Worksheet Functions 10 May 20th 08 02:40 PM
Referencing another worksheet via a cell [email protected] Excel Worksheet Functions 2 October 31st 06 07:22 PM


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