PC Review


Reply
Thread Tools Rate Thread

Control tab order of unlocked cells on a sheet

 
 
=?Utf-8?B?WFA=?=
Guest
Posts: n/a
 
      24th Oct 2007
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 With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      24th Oct 2007
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" <(E-Mail Removed)> wrote in message
news:A787E55A-DC2B-4872-BA14-(E-Mail Removed)...
> 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to select all unlocked cells on a sheet? Ted M H Microsoft Excel Programming 8 31st Oct 2009 07:12 PM
How to specify order of moving to unlocked cells in a protected sh mwood Microsoft Excel Misc 1 16th Jul 2009 06:45 PM
Unlocked Cells in Protected Sheet =?Utf-8?B?S01B?= Microsoft Excel Worksheet Functions 3 8th Nov 2007 07:08 PM
paste locked cells and unlocked cells in protected sheet =?Utf-8?B?YW5nZWxpbmU=?= Microsoft Excel Worksheet Functions 15 1st Nov 2006 11:51 PM
How do I change the order of tab through unlocked cells? =?Utf-8?B?RHJlYQ==?= Microsoft Excel Worksheet Functions 0 27th Sep 2006 01:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:52 AM.