Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Wind54Surfer
 
Posts: n/a
Default How to go to a cell after exiting another distant cell?

Hi everyone, another stumbling block

I am trying to move to a distant cell after leaving a particular cell.

(my worksheet is protected already-with formulas locked)

I did a search on this and the link:

http://www.xldynamic.com/source/xld.xlFAQ0008.html

Doesn't work for me.

Can someone please help me?

Thanks in advance,

Emilio

  #2   Report Post  
Wind54Surfer
 
Posts: n/a
Default

I managed to make the link work, but it is not what I am looking for.

I need to be able to jump from 1 cell to another one , and I would like to
do it with code.

Can someone show me an example? Please

Thanks again,
Emilio

"Wind54Surfer" wrote:

Hi everyone, another stumbling block

I am trying to move to a distant cell after leaving a particular cell.

(my worksheet is protected already-with formulas locked)

I did a search on this and the link:

http://www.xldynamic.com/source/xld.xlFAQ0008.html

Doesn't work for me.

Can someone please help me?

Thanks in advance,

Emilio

  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

Wind

There are a couple of methods there. Did neither one work and why not?

A third method is by code if you want to use it.

'moves from C2 through E5 at entry
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Address
Case "$C$2"
Range("C5").Select
Case "$C$5"
Range("E2").Select
Case "$E$2"
Range("E5").Select
End Select
End Sub

Right-click on your sheet tab and "View Code". Copy/paste in there.


Gord Dibben Excel MVP

On Thu, 24 Feb 2005 11:49:05 -0800, Wind54Surfer
wrote:

Hi everyone, another stumbling block

I am trying to move to a distant cell after leaving a particular cell.

(my worksheet is protected already-with formulas locked)

I did a search on this and the link:

http://www.xldynamic.com/source/xld.xlFAQ0008.html

Doesn't work for me.

Can someone please help me?

Thanks in advance,

Emilio


  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

Whoops. You did say the link didn't work. I mistook that for methods didn't
work. Sorry about that.

Anyway, now you have code.

Gord

On Thu, 24 Feb 2005 16:06:33 -0800, Gord Dibben <gorddibbATshawDOTca wrote:

Wind

There are a couple of methods there. Did neither one work and why not?

A third method is by code if you want to use it.

'moves from C2 through E5 at entry
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Address
Case "$C$2"
Range("C5").Select
Case "$C$5"
Range("E2").Select
Case "$E$2"
Range("E5").Select
End Select
End Sub

Right-click on your sheet tab and "View Code". Copy/paste in there.


Gord Dibben Excel MVP

On Thu, 24 Feb 2005 11:49:05 -0800, Wind54Surfer
wrote:

Hi everyone, another stumbling block

I am trying to move to a distant cell after leaving a particular cell.

(my worksheet is protected already-with formulas locked)

I did a search on this and the link:

http://www.xldynamic.com/source/xld.xlFAQ0008.html

Doesn't work for me.

Can someone please help me?

Thanks in advance,

Emilio


  #5   Report Post  
Wind54Surfer
 
Posts: n/a
Default

Thanks, but my knowledge of code in Access doesn't help me here, since there
are no events to trigger the code, can't figure out how to make it work.

Can you please expand on how to get the code to work when exiting say cell C2?

Thanks for any help,
Emilio

"Gord Dibben" wrote:

Whoops. You did say the link didn't work. I mistook that for methods didn't
work. Sorry about that.

Anyway, now you have code.

Gord

On Thu, 24 Feb 2005 16:06:33 -0800, Gord Dibben <gorddibbATshawDOTca wrote:

Wind

There are a couple of methods there. Did neither one work and why not?

A third method is by code if you want to use it.

'moves from C2 through E5 at entry
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Address
Case "$C$2"
Range("C5").Select
Case "$C$5"
Range("E2").Select
Case "$E$2"
Range("E5").Select
End Select
End Sub

Right-click on your sheet tab and "View Code". Copy/paste in there.


Gord Dibben Excel MVP

On Thu, 24 Feb 2005 11:49:05 -0800, Wind54Surfer
wrote:

Hi everyone, another stumbling block

I am trying to move to a distant cell after leaving a particular cell.

(my worksheet is protected already-with formulas locked)

I did a search on this and the link:

http://www.xldynamic.com/source/xld.xlFAQ0008.html

Doesn't work for me.

Can someone please help me?

Thanks in advance,

Emilio





  #6   Report Post  
Wind54Surfer
 
Posts: n/a
Default

How stupid of me

Worksheet is not the same as Workbook

I get it now

Thanks a lot!

Emilio

"Wind54Surfer" wrote:

Thanks, but my knowledge of code in Access doesn't help me here, since there
are no events to trigger the code, can't figure out how to make it work.

Can you please expand on how to get the code to work when exiting say cell C2?

Thanks for any help,
Emilio

"Gord Dibben" wrote:

Whoops. You did say the link didn't work. I mistook that for methods didn't
work. Sorry about that.

Anyway, now you have code.

Gord

On Thu, 24 Feb 2005 16:06:33 -0800, Gord Dibben <gorddibbATshawDOTca wrote:

Wind

There are a couple of methods there. Did neither one work and why not?

A third method is by code if you want to use it.

'moves from C2 through E5 at entry
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Address
Case "$C$2"
Range("C5").Select
Case "$C$5"
Range("E2").Select
Case "$E$2"
Range("E5").Select
End Select
End Sub

Right-click on your sheet tab and "View Code". Copy/paste in there.


Gord Dibben Excel MVP

On Thu, 24 Feb 2005 11:49:05 -0800, Wind54Surfer
wrote:

Hi everyone, another stumbling block

I am trying to move to a distant cell after leaving a particular cell.

(my worksheet is protected already-with formulas locked)

I did a search on this and the link:

http://www.xldynamic.com/source/xld.xlFAQ0008.html

Doesn't work for me.

Can someone please help me?

Thanks in advance,

Emilio



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
Can a Formula in Cell X modify Cell Y? alMandragor Excel Discussion (Misc queries) 7 February 10th 05 09:51 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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