G Guest Aug 14, 2007 #1 If cells are 'locked' I have found that data which is supposed to be inserted by code isn't. Is there a way around this?
If cells are 'locked' I have found that data which is supposed to be inserted by code isn't. Is there a way around this?
T Trevor via OfficeKB.com Aug 14, 2007 #2 The code needs to unprotect the worksheet before updating the cells and, if required, protect the worksheet after updating the cells.
The code needs to unprotect the worksheet before updating the cells and, if required, protect the worksheet after updating the cells.
G Guest Aug 14, 2007 #3 Jock, Unprotect make you changes and then reprotect at runtime Sub standard() ActiveSheet.Unprotect Password:="Mypass" 'Make your changes ActiveSheet.protect Password:="Mypass" End Sub Mike
Jock, Unprotect make you changes and then reprotect at runtime Sub standard() ActiveSheet.Unprotect Password:="Mypass" 'Make your changes ActiveSheet.protect Password:="Mypass" End Sub Mike
G Guest Aug 14, 2007 #4 Thanks to Trevor & Mike -- Traa Dy Liooar Jock Trevor via OfficeKB.com said: The code needs to unprotect the worksheet before updating the cells and, if required, protect the worksheet after updating the cells. Click to expand...
Thanks to Trevor & Mike -- Traa Dy Liooar Jock Trevor via OfficeKB.com said: The code needs to unprotect the worksheet before updating the cells and, if required, protect the worksheet after updating the cells. Click to expand...