what am i doing wrong ~???With Range(Array("File_Name", "Site")) .Locked = True .NumberFormat = "@" End With
what am i doing wrong ~???With Range(Array("File_Name", "Site")) .Locked = True .NumberFormat = "@" End With
[vba]
With Union(Range("File_Name"), Range("Site"))
.Locked = True
.NumberFormat = "@"
End With
[/vba]
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
this is what i managed to write following the help guides , i guess i was nearly there.. go to get better at thisSet UnionRange = Union(Range("File_Name"), Range("Site")) With UnionRange .Locked = True .NumberFormat = "@" End With
for the advice, really appreciated it.