ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I relegate the curser movement in a formula? (https://www.excelbanter.com/excel-programming/341636-how-do-i-relegate-curser-movement-formula.html)

Jeff D.

How do I relegate the curser movement in a formula?
 
I need to move the curser automatically in an excel spreadsheet to a
specified address on the work sheet; say from $K$73 to $N$1. Is there any way
to do this in a formula?

Tom Ogilvy

How do I relegate the curser movement in a formula?
 
Right click on the sheet tab and select view code.

Paste in code like this:

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Target.Address = "$K$73" Then
Range("N1").Select
End If
End Sub

--
Regards,
Tom Ogilvy

"Jeff D." <Jeff wrote in message
...
I need to move the curser automatically in an excel spreadsheet to a
specified address on the work sheet; say from $K$73 to $N$1. Is there any

way
to do this in a formula?




Jeff D.[_2_]

How do I relegate the curser movement in a formula?
 
Thank you Mr. Ogilvy - You made an "Old man smile again". This worked
perfectly!

"Tom Ogilvy" wrote:

Right click on the sheet tab and select view code.

Paste in code like this:

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Target.Address = "$K$73" Then
Range("N1").Select
End If
End Sub

--
Regards,
Tom Ogilvy

"Jeff D." <Jeff wrote in message
...
I need to move the curser automatically in an excel spreadsheet to a
specified address on the work sheet; say from $K$73 to $N$1. Is there any

way
to do this in a formula?






All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com