There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard netgear network printer problem ram registry repair router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Software Development >
Solved: Simulate lock and protect

Reply  
Thread Tools
grnadpa's Avatar
Junior Member with 14 posts.
 
Join Date: Aug 2009
Experience: Intermediate
27-Oct-2009, 09:44 AM #1
Solved: Simulate lock and protect
Good morning,

Can I check for a Excel 2003 cell attribute of "lock" without protecting the sheet?

Also, can I detect the cell that changed versus the current cell?

Because the client wants to use the Excel outline capability, I cannot lock and protect.

Originally I chose to check for a specific background color for modifiable cells through VBA. (Code which I apparently since lost in a prior version).

Even then I had a time trying to detect which cell changed versus the current cell (to undo if the changed cell was "protected").

Thanks

Grnadpa Brian
grnadpa's Avatar
Junior Member with 14 posts.
 
Join Date: Aug 2009
Experience: Intermediate
27-Oct-2009, 10:09 AM #2
Figured it out

Quote:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If target.locked then ...
end sub
And then I simply unlock the relevant column / cells and leave the rest locked (without protecting the sheet.)
Reply

Tags
cell address, cell attributes, excel 2003, protect, vba

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:25 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.