Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Go to another cell on another worksheet

Excel 2002 - Two worksheets in a workbook. When hitting enter in cell L30 on
1st worksheet, want cursor to go to cell B5 on 2nd sheet.
Can tihs be done?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Go to another cell on another worksheet

Press Alt + F11 to open the Visual Basic Editor and double click the
worksheet that has cell L30 that is to act as the trigger.

In the module window there are 2 combo boxes at the top of the
window,directly below the toolbars.

Set the combobox on the right to Worksheet and the one one the left to Change
and enter the following code or copy and paste out of this reply. You will
need to change the entry that says Sheet2 to the worksheet that has the cell
you want selected when L30 is updated:

If Target = Range("L30") Then
With ThisWorkbook.Worksheets("Sheet2")
.Activate
.Range("B5").Select
End With
End If


When finished it should look like this:

Private Sub Worksheet_Change(ByVal Target As Range)

If Target = Range("L30") Then
With ThisWorkbook.Worksheets("YourSheetName")
.Activate
.Range("B5").Select
End With
End If

End Sub

Now, when you update L30 it will automatically move you to cell B5 in the
stated worksheet.
--
Kevin Backmann


"Editor" wrote:

Excel 2002 - Two worksheets in a workbook. When hitting enter in cell L30 on
1st worksheet, want cursor to go to cell B5 on 2nd sheet.
Can tihs be done?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Go to another cell on another worksheet

When entering info in the combo boxes I, the boxes were reversed from your
instructions - is this correct?

Is there anything that needs done to activate the code - it was entered
without any errors, but doesn't seem to work?

Thanks.

"Kevin B" wrote:

Press Alt + F11 to open the Visual Basic Editor and double click the
worksheet that has cell L30 that is to act as the trigger.

In the module window there are 2 combo boxes at the top of the
window,directly below the toolbars.

Set the combobox on the right to Worksheet and the one one the left to Change
and enter the following code or copy and paste out of this reply. You will
need to change the entry that says Sheet2 to the worksheet that has the cell
you want selected when L30 is updated:

If Target = Range("L30") Then
With ThisWorkbook.Worksheets("Sheet2")
.Activate
.Range("B5").Select
End With
End If


When finished it should look like this:

Private Sub Worksheet_Change(ByVal Target As Range)

If Target = Range("L30") Then
With ThisWorkbook.Worksheets("YourSheetName")
.Activate
.Range("B5").Select
End With
End If

End Sub

Now, when you update L30 it will automatically move you to cell B5 in the
stated worksheet.
--
Kevin Backmann


"Editor" wrote:

Excel 2002 - Two worksheets in a workbook. When hitting enter in cell L30 on
1st worksheet, want cursor to go to cell B5 on 2nd sheet.
Can tihs be done?

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
If in specific cell in any worksheet but worksheet one add to spec LiveUser Excel Worksheet Functions 3 January 24th 08 11:26 PM
copy cell from one worksheet to another worksheet in exel luvs_choc8 Excel Discussion (Misc queries) 1 July 10th 07 04:16 PM
populate cell on worksheet 2 if text is red on worksheet 1 SCrowley Excel Worksheet Functions 14 May 15th 07 09:28 PM
How do I copy a date in a worksheet cell to another worksheet? JennLee Excel Worksheet Functions 3 February 17th 06 05:38 PM
How can I link cell colours from worksheet to worksheet/workbook? Evelyn Excel Worksheet Functions 1 July 5th 05 09:16 PM


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