PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Charting Tabbed cells?

Reply

Tabbed cells?

 
Thread Tools Rate Thread
Old 21-11-2003, 05:26 PM   #1
Phil Hageman
Guest
 
Posts: n/a
Default Tabbed cells?


Is there code I can put in a worksheet code page that will
tab only certain cells, and not allow the user to select
any other cell? Unprotected cells are the targets here.

Thanks, Phil
  Reply With Quote
Old 21-11-2003, 06:31 PM   #2
Jon Peltier
Guest
 
Posts: n/a
Default Re: Tabbed cells?

Phil -

First, unlock the cells you want to allow access to, then protect the
worksheet. In vba, either in a procedure or in the immediate window,
use this command:

activesheet.enableselection = xlunlockedcells

Unfortunately, the workbook forgets this setting, so you have to reapply
it whenever it is reopened.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

Phil Hageman wrote:

> Is there code I can put in a worksheet code page that will
> tab only certain cells, and not allow the user to select
> any other cell? Unprotected cells are the targets here.
>
> Thanks, Phil


  Reply With Quote
Old 21-11-2003, 06:50 PM   #3
Phil Hageman
Guest
 
Posts: n/a
Default Thanks

Thanks, Jon - I'll try it out.
>-----Original Message-----
>Phil -
>
>First, unlock the cells you want to allow access to, then

protect the
>worksheet. In vba, either in a procedure or in the

immediate window,
>use this command:
>
> activesheet.enableselection = xlunlockedcells
>
>Unfortunately, the workbook forgets this setting, so you

have to reapply
>it whenever it is reopened.
>
>- Jon
>-------
>Jon Peltier, Microsoft Excel MVP
>http://www.geocities.com/jonpeltier/Excel/index.html
>_______
>
>Phil Hageman wrote:
>
>> Is there code I can put in a worksheet code page that

will
>> tab only certain cells, and not allow the user to

select
>> any other cell? Unprotected cells are the targets here.
>>
>> Thanks, Phil

>
>.
>

  Reply With Quote
Old 21-11-2003, 07:06 PM   #4
Phil Hageman
Guest
 
Posts: n/a
Default Deny unlocked cells

This works fine - it tabs all the unlocked cells. Now, is
there a way to keep the user from selecting a locked cell?
>-----Original Message-----
>Phil -
>
>First, unlock the cells you want to allow access to, then

protect the
>worksheet. In vba, either in a procedure or in the

immediate window,
>use this command:
>
> activesheet.enableselection = xlunlockedcells
>
>Unfortunately, the workbook forgets this setting, so you

have to reapply
>it whenever it is reopened.
>
>- Jon
>-------
>Jon Peltier, Microsoft Excel MVP
>http://www.geocities.com/jonpeltier/Excel/index.html
>_______
>
>Phil Hageman wrote:
>
>> Is there code I can put in a worksheet code page that

will
>> tab only certain cells, and not allow the user to

select
>> any other cell? Unprotected cells are the targets here.
>>
>> Thanks, Phil

>
>.
>

  Reply With Quote
Old 24-11-2003, 05:53 PM   #5
Jon Peltier
Guest
 
Posts: n/a
Default Re: Deny unlocked cells

Phil -

The line of code I provided should do that as well:
activesheet.enableselection = xlunlockedcells

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

Phil Hageman wrote:

> This works fine - it tabs all the unlocked cells. Now, is
> there a way to keep the user from selecting a locked cell?
>
>>-----Original Message-----
>>Phil -
>>
>>First, unlock the cells you want to allow access to, then

>
> protect the
>
>>worksheet. In vba, either in a procedure or in the

>
> immediate window,
>
>>use this command:
>>
>> activesheet.enableselection = xlunlockedcells
>>
>>Unfortunately, the workbook forgets this setting, so you

>
> have to reapply
>
>>it whenever it is reopened.
>>
>>- Jon
>>-------
>>Jon Peltier, Microsoft Excel MVP
>>http://www.geocities.com/jonpeltier/Excel/index.html
>>_______
>>
>>Phil Hageman wrote:
>>
>>
>>>Is there code I can put in a worksheet code page that

>
> will
>
>>>tab only certain cells, and not allow the user to

>
> select
>
>>>any other cell? Unprotected cells are the targets here.
>>>
>>>Thanks, Phil

>>
>>.
>>


  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off