Cell Protection

lukemedway

New Member
Joined
May 6, 2002
Messages
17
How can i lock a cell without the complication of adding user permissions as this wont be avaliable when i take my assignment into college?
 
Another suggestion for this kind of coding is this:
Don't code totally from scratch!
Start by recording a new macro that does exactly what you want ( in this case un-protect a sheet ... then protect it again.)

Once you've recorded the macro go in and edit the macro by inserting you extra piece of code in the middle.

I find that starting problems this way is great in learning new command and codes.
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi again,
I don't why this happens or what i'm doing wrong but this always happens to me . The "_" is an UNDERSCORE
it is used to contine the line of code to the next line,your code should look like:

Sheets("100m").Unprotect password:="Carol"

Sorry for the confusion of the "UnderScore"
I edited my last post to correct this

James
 
Upvote 0
Thankyou lads you have both been a great help and now i have managed to get it working, i didnt bother with the password in the end but now i know how to add one if i wanted it.

Im not very familiar with vb i have done a little bit of it and i really should learn it so i know what the hell you and i am going on about!
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top