Being mostly self taught in VBA I tried to combine lines a and b into c,
using line d as an example from recording a macro.
compiler did not like line c.
How do you know when "combining" lines will work and when it will not?
thanks.
Cells(x, y).Borders(xlEdgeLeft).LineStyle = xlContinuous '' a
Cells(x, y).Borders(xlEdgeLeft).Weight = xlThick '' b
Cells(x, y).Borders(xlEdgeLeft) LineStyle:=xlContinuous, Weight:=xlThick '' c
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
'' d
--
Neal Z
Bookmarks