ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   urgent, how to lock entire column upon load? (https://www.excelbanter.com/excel-programming/290820-urgent-how-lock-entire-column-upon-load.html)

shirley

urgent, how to lock entire column upon load?
 
what is the code to lock 1 entire column upon auto load

--
Message posted from http://www.ExcelForum.com


Tom Ogilvy

urgent, how to lock entire column upon load?
 
Sub auto_open()
Activesheet.Unprotect
columns(1).Cells.Locked = True
Activesheet.Protect
end Sub

but cells being locked is the default.

--
regards,
Tom Ogilvy

shirley wrote in message
...
what is the code to lock 1 entire column upon auto load?


---
Message posted from http://www.ExcelForum.com/




shirley

urgent, how to lock entire column upon load?
 
thx

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 08:20 AM.

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