R
rob nobel
Could someone please explain what is happening with this procedure .
For Each cell In Sheets("ALL A-C").Range("B25:B1524")
With cell
.Offset(0, 1).Resize(1, 6).Locked = .Value
End With
Next cell
1. Does it mean that the cells in columns C through H are all locked if the
Value in the corresponding row in column B is true?
2. How does this procedure determine if the value in column B is true or
false?
3. How does the Offset procedure work. That is, why Offset(0,1) why not
(0,0). And Resize(1,6) instead of (0,6)?
4. How does the loop do its thing as I would also like to include a
procedure that deletes the formulas in the 5th column and replace them by
their value if the values in column A are true. (that is, how can I
incorporate a PasteSpecial (Value) in here?)
If someone can explain all this to me you'd be worth your weight in gold.
Therefore a lightweighted reply would be appreciated
Thankyou,
Rob
For Each cell In Sheets("ALL A-C").Range("B25:B1524")
With cell
.Offset(0, 1).Resize(1, 6).Locked = .Value
End With
Next cell
1. Does it mean that the cells in columns C through H are all locked if the
Value in the corresponding row in column B is true?
2. How does this procedure determine if the value in column B is true or
false?
3. How does the Offset procedure work. That is, why Offset(0,1) why not
(0,0). And Resize(1,6) instead of (0,6)?
4. How does the loop do its thing as I would also like to include a
procedure that deletes the formulas in the 5th column and replace them by
their value if the values in column A are true. (that is, how can I
incorporate a PasteSpecial (Value) in here?)
If someone can explain all this to me you'd be worth your weight in gold.
Therefore a lightweighted reply would be appreciated

Thankyou,
Rob