ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   EnableSelection = xlUnlockedCells (https://www.excelbanter.com/excel-programming/293693-enableselection-%3D-xlunlockedcells.html)

Stuart[_5_]

EnableSelection = xlUnlockedCells
 
If I say:
With ws
.Protect
.EnableSelection = xlUnlockedCells
End With
and then save the workbook, then when I reopen
it, then it is protected, but the EnableSelection
statement is not operating.

Is this as intended? If so, then will I have to use the
Workbook Open event to set the Selection?

Regards.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 05/03/2004



Sunryzz[_2_]

EnableSelection = xlUnlockedCells
 
Oh Good Grief!!!! Thank you so much. I've been looking for how to do this
all day. I've tried all different kinds of code and nothing worked. I'm
so glad I found this site and your answer!!

Thanks again.



All times are GMT +1. The time now is 12:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com