Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Control tab order of unlocked cells on a sheet

Using Office 2003 and Windows XP;

I have an Excel form in which I would like to control the tab order of
unprotected cells in a sheet. I plan to use the following suggested code I
found in another post on this site:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then Target.Offset(1).Select
If Target.Address = "$A$2" Then Target.Offset(1).Select
If Target.Address = "$A$3" Then Target.Offset(-2, 1).Select
'or
'If Target.Address = "$A$3" Then Range("b1").Select
End Sub

Three questions:

1) Is this the best method to use? Does anyone have any other good ideas?

2) My form has about 60 blanks in it; with a Change event tied to so many
cells, will there be a significant performance hit on the file/sheet? (I'd
like to know before I code all that)

3) Many of my "blanks" are merged cells, how do I reference a merged area
using the above code, just the top-most or left-most cell in the merge area?
or Do I need to reference the whole range of merged cells?

Thanks much in advance for your input/assistance.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Control tab order of unlocked cells on a sheet

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

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"XP" wrote in message
...
Using Office 2003 and Windows XP;

I have an Excel form in which I would like to control the tab order of
unprotected cells in a sheet. I plan to use the following suggested code I
found in another post on this site:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then Target.Offset(1).Select
If Target.Address = "$A$2" Then Target.Offset(1).Select
If Target.Address = "$A$3" Then Target.Offset(-2, 1).Select
'or
'If Target.Address = "$A$3" Then Range("b1").Select
End Sub

Three questions:

1) Is this the best method to use? Does anyone have any other good ideas?

2) My form has about 60 blanks in it; with a Change event tied to so many
cells, will there be a significant performance hit on the file/sheet? (I'd
like to know before I code all that)

3) Many of my "blanks" are merged cells, how do I reference a merged area
using the above code, just the top-most or left-most cell in the merge
area?
or Do I need to reference the whole range of merged cells?

Thanks much in advance for your input/assistance.




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
How to specify order of moving to unlocked cells in a protected sh mwood Excel Discussion (Misc queries) 1 July 16th 09 06:45 PM
Unlocked Cells in Protected Sheet KMA Excel Worksheet Functions 3 November 8th 07 07:08 PM
paste locked cells and unlocked cells in protected sheet Angeline Excel Worksheet Functions 15 November 1st 06 11:51 PM
Moving from unlocked cells to unlocked cells in an excel form Stacey Lee Excel Worksheet Functions 1 April 24th 06 08:44 PM
move between unlocked cells on protected sheet ayanna Excel Discussion (Misc queries) 1 April 27th 05 05:59 PM


All times are GMT +1. The time now is 11:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"