Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Cursor position after enter

I have found how to set the after enter behaviour of the cursor in the
options menu.

What I want to do is have the cursor jump to the next (unlocked cell right
and then down)

Or another way to say it is... DataEntryCells = (B2,B4,B6:E6,B7,B9:E9,B10...)
This range of cells will be the "Allow User to Edit range"
I could also make this a named range if need be...

How can I make the enter button cause tabbing to just these cells? When at
the bottom.. then return to the top.

Either with just excel features or through some kind of on cell activate
event... what are my options here?

--
Regards,
John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Cursor position after enter

Hi,
Not 100% sure but:
-In XL 2002 and above, sheet the sheet EnableSelection to xlUnlockedCells
and protect your sheet.
-In XL 2K, if you do the same thing, once you close and re-open the book,
the property has been re-set (i believe). That is, you have to set it through
code in the ThisWorkbook module in the Workbook_Open sub:
Private Sub Workbook_Open()
Me.Worksheets("Sheet1").EnableSelection = xlUnlockedCells
End Sub

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"John Keith" wrote:

I have found how to set the after enter behaviour of the cursor in the
options menu.

What I want to do is have the cursor jump to the next (unlocked cell right
and then down)

Or another way to say it is... DataEntryCells = (B2,B4,B6:E6,B7,B9:E9,B10...)
This range of cells will be the "Allow User to Edit range"
I could also make this a named range if need be...

How can I make the enter button cause tabbing to just these cells? When at
the bottom.. then return to the top.

Either with just excel features or through some kind of on cell activate
event... what are my options here?

--
Regards,
John

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Cursor position after enter

Excellent, that worked.

I had to go to the Format|Cells|ProtectionTab and uncheck locked on each
cell/range I wanted to be in the editable list.

Enter or tab now activates the next cell in the sequence that I wanted.
--
Regards,
John


"sebastienm" wrote:

Hi,
Not 100% sure but:
-In XL 2002 and above, sheet the sheet EnableSelection to xlUnlockedCells
and protect your sheet.
-In XL 2K, if you do the same thing, once you close and re-open the book,
the property has been re-set (i believe). That is, you have to set it through
code in the ThisWorkbook module in the Workbook_Open sub:
Private Sub Workbook_Open()
Me.Worksheets("Sheet1").EnableSelection = xlUnlockedCells
End Sub

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"John Keith" wrote:

I have found how to set the after enter behaviour of the cursor in the
options menu.

What I want to do is have the cursor jump to the next (unlocked cell right
and then down)

Or another way to say it is... DataEntryCells = (B2,B4,B6:E6,B7,B9:E9,B10...)
This range of cells will be the "Allow User to Edit range"
I could also make this a named range if need be...

How can I make the enter button cause tabbing to just these cells? When at
the bottom.. then return to the top.

Either with just excel features or through some kind of on cell activate
event... what are my options here?

--
Regards,
John

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default Cursor position after enter

Hi John and Sebastian,

I too would like to automate cursor movement. I can't work out what the
instructions you have given mean. I've typed in "Sheet Enable", Enable
Selection", and "Xlunlocked cells" into help but nothing of any help comes up.

What I'd like to do is to somehow set the cell itself to send the cursor to
a specific cell on "Enter". Is there a way? I'm using Excel 2000 by the way.

It'd be great - and elementary - tool almost EVERYONE would probably use if
Microsoft would place that option (both absolute and relative) on the "format
cell" menu.


"John Keith" wrote:

Excellent, that worked.

I had to go to the Format|Cells|ProtectionTab and uncheck locked on each
cell/range I wanted to be in the editable list.

Enter or tab now activates the next cell in the sequence that I wanted.
--
Regards,
John


"sebastienm" wrote:

Hi,
Not 100% sure but:
-In XL 2002 and above, sheet the sheet EnableSelection to xlUnlockedCells
and protect your sheet.
-In XL 2K, if you do the same thing, once you close and re-open the book,
the property has been re-set (i believe). That is, you have to set it through
code in the ThisWorkbook module in the Workbook_Open sub:
Private Sub Workbook_Open()
Me.Worksheets("Sheet1").EnableSelection = xlUnlockedCells
End Sub

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"John Keith" wrote:

I have found how to set the after enter behaviour of the cursor in the
options menu.

What I want to do is have the cursor jump to the next (unlocked cell right
and then down)

Or another way to say it is... DataEntryCells = (B2,B4,B6:E6,B7,B9:E9,B10...)
This range of cells will be the "Allow User to Edit range"
I could also make this a named range if need be...

How can I make the enter button cause tabbing to just these cells? When at
the bottom.. then return to the top.

Either with just excel features or through some kind of on cell activate
event... what are my options here?

--
Regards,
John

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
cursor position MarkT Excel Discussion (Misc queries) 5 February 7th 07 01:25 PM
Cursor Position in VBE ehntd[_5_] Excel Programming 0 November 3rd 04 08:44 AM
Cursor Position in VBE ehntd[_4_] Excel Programming 1 November 2nd 04 05:50 PM
cursor position Fan Fan Excel Programming 3 August 14th 04 01:12 AM
Position Cursor to A1 Dennis Damsgaard Excel Programming 3 June 8th 04 10:30 PM


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