Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default I want to make locked cells un-clickable

What is the VBA command to do this? I want to be able to just tab over
to unlocked cells and skip locked cells completely.

I knew how to do this once, but I must have learned something new
which crowded out that bit of knowledge. Thanks for your help.

-John L.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default I want to make locked cells un-clickable

John, here is one way, put in thisworkbook code

Private Sub Workbook_Open()
'will not let you select locked cells
'This is a setting that Excel doesn't remember between closings,
'that is why it in the workbook open event

'change to your sheet name
With Worksheets("sheet1")
.Activate
.EnableSelection = xlUnlockedCells
.Protect Contents:=True, UserInterfaceOnly:=True
End With
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 2003
** remove news from my email address to reply by email **
"John" wrote in message
m...
What is the VBA command to do this? I want to be able to just tab over
to unlocked cells and skip locked cells completely.

I knew how to do this once, but I must have learned something new
which crowded out that bit of knowledge. Thanks for your help.

-John L.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default I want to make locked cells un-clickable

I tried this code in my Workbook_Open Object, but when I saved and
reopened, it asked for my password. I hit cancel (since I don't want the
user to have to enter a password) and then clicked my macro button. I
then got an error 1004 which is what I get when the sheet is protected and
I try to run a macro. I want to protect a group of cells on the sheet and
still be able to run a macro on them. I seem to be able to get many
things to do this for me until I save and close the file. Then all bets
are off!! Please help if you can.

Thanks

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
Pulling a cell reference--clickable cells? Bermie Excel Worksheet Functions 1 April 16th 10 09:33 AM
Clickable Cells JSnow Excel Discussion (Misc queries) 2 September 25th 08 04:50 PM
How can I make a clickable button to do a Key Combo? BGerman Excel Worksheet Functions 4 August 21st 06 05:01 PM
Make bars on a bar chart clickable? Mark Stephens Charts and Charting in Excel 5 May 19th 05 12:40 PM
Lots of single clickable cells Ronald Moolenaar Excel Programming 3 August 13th 03 09:24 AM


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