If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Problem with Move Selection After Enter

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-12-09, 13:23
ptkirnig ptkirnig is offline
Registered User
 
Join Date: Aug 2009
Posts: 2
Problem with Move Selection After Enter

I expect this is probably an easy one to sort out......but it's got me stuck!

I have a sheet with a macro that protects and unprotects depending on what's happening on the sheet.

For some reason the cell selection moves whenever I hit return. The problem is, when I look at Options, the "Move Selection After Enter" is off! Now if I unprotect the sheet, the cell selection stops moving when I hit return.

In a nutshell, the "Move Selection After Enter" is set to off, but when the sheet is protected, the selection still occurs after hitting return. When the sheet is unprotected, everything is ok!!
Reply With Quote
  #2 (permalink)  
Old 08-17-09, 11:11
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Quote:
Originally Posted by ptkirnig
I expect this is probably an easy one to sort out......but it's got me stuck!

I have a sheet with a macro that protects and unprotects depending on what's happening on the sheet.

For some reason the cell selection moves whenever I hit return. The problem is, when I look at Options, the "Move Selection After Enter" is off! Now if I unprotect the sheet, the cell selection stops moving when I hit return.

In a nutshell, the "Move Selection After Enter" is set to off, but when the sheet is protected, the selection still occurs after hitting return. When the sheet is unprotected, everything is ok!!
Hi

I think you need to make sure that 'Select Locked Cells' is ticked (or the VBA equivelant) when you protect the sheet.

ie like
Code:
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
ActiveSheet.EnableSelection = xlNoRestrictions
or similar

MTB
Reply With Quote
  #3 (permalink)  
Old 08-17-09, 14:51
ptkirnig ptkirnig is offline
Registered User
 
Join Date: Aug 2009
Posts: 2
Mike
Thanks for that, I think you are probably right. I should say now that I got so frustrated with the problem, I am now using a form to control input onto the worksheet!!
Thanks anyway.
Paul
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On