Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 2k Partial Cell Text Lock?

Status
Not open for further replies.

Mictain

MIS
Jul 4, 2001
79
GB
Hi All,

I don't imagine it's actually possible to do this, but...

If you have some text in cell A1, say "name" and you wish this text to be locked / unchangeable by a user, but you also require the user to input data after this word in the same cell; can this be done?

Probably a stupid question, but I hear so many every day I thought I'd throw out one of my own for a change :)

Thanks,

Neil.
 
not in the same cell but you could have an unlocked cell next to it and use the worksheet change event to add the new text to the locked text when it has been entered into the adjacent cell.....

Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
Cheers Geoff. So it sounds like using the unlocked cell again after initial input (for correction of spelling mistakes, etc) would overwrite the locked cell data? Is that right?

Thanks,
Neil.
 
you could make it happen like that - yes - using a protection argument of userinterfaceonly = true - this sets the protection so that to the user, the sheet is locked but you can run code on the sheet without having to protect / unprotect all the time.... If you are interested in a code based solution, please post in the VBA forum

Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
Will do, Geoff. I'll see what I can do with this. Thanks again.

Neil.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top