Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default tab index to move around within unprotected cells

Hi,

I'm not sure that I'm in the right newsgroup but I hope someone has a
suggestion for me. I created an Excel spreadsheet that has about 12 fields
in in that are editable by users, the rest of this spreadsheet is protected.
Is there a way that I can program a tab index to move through these 12
fields?

Thanks in Advance,
JeffH


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default tab index to move around within unprotected cells

Hi Jeff

If you protect your sheet by default you tab to the unprotected cells by row

Maybe you can use this

Sub test_1()
Dim myRange As Range
Dim myCell As Range
Dim myAns As Variant

Set myRange = Range("I3,K7,m11")

For Each myCell In myRange.Cells
myAns = InputBox _
(prompt:="Please enter something for cell: " & myCell.Address, _
Title:="Get Data")
If myAns < "" Then
myCell.Value = myAns
End If
Next myCell
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"JeffH" wrote in message ...
Hi,

I'm not sure that I'm in the right newsgroup but I hope someone has a
suggestion for me. I created an Excel spreadsheet that has about 12 fields
in in that are editable by users, the rest of this spreadsheet is protected.
Is there a way that I can program a tab index to move through these 12
fields?

Thanks in Advance,
JeffH




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default tab index to move around within unprotected cells

Hi Jeff,
If you Lock all of the cells in the worksheet by
Selecting all
Right Click and Format Cells
Protection
Check Lock Cells

Then on those 12 you want to give the ability to update, right click
those and unlock.
Then when you are protecting the sheet, Allow users to select only
unlocked cells.(Check this box only)

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
Unprotected cells Mainer Excel Worksheet Functions 2 October 13th 09 02:37 AM
Enter data, move automatically to next unprotected cell Patrick Riley Excel Worksheet Functions 10 April 3rd 07 04:26 PM
Move to next unprotected cell automatically after entering data Patrick Riley Excel Discussion (Misc queries) 2 April 2nd 07 10:17 PM
move cusor to the next unprotected cell RS Excel Worksheet Functions 2 November 28th 05 04:47 PM
Move cursor through all unprotected cells in a protected worksheet Bob Simpson Excel Discussion (Misc queries) 9 November 18th 05 06:50 PM


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