HI!
THE BELOW CODE WITH END WITH HAS SYNTAX ERROR. COULD YOU TELL ME WHAT IS THE ERROR?
THANKS IN ADVANCE
with obj.Worksheets("Sheet1").select
obj.Worksheets("Sheet1").Cells("1:4").Font.Size = 12
obj.Worksheets("Sheet1") .Range("1:4") = "x";"Y";"Z";"B"
End with
OR
obj.Worksheets("Sheet1").Cells(1,1).Font.Size = 12
obj.Worksheets("Sheet1").Cells(1,1)= "X"
obj.Worksheets("Sheet1").Cells(1,2)= "Y"
obj.Worksheets("Sheet1").Cells(1,3)= "Z"
obj.Worksheets("Sheet1").Cells(1,4)= "B"
THE BELOW CODE WITH END WITH HAS SYNTAX ERROR. COULD YOU TELL ME WHAT IS THE ERROR?
THANKS IN ADVANCE
with obj.Worksheets("Sheet1").select
obj.Worksheets("Sheet1").Cells("1:4").Font.Size = 12
obj.Worksheets("Sheet1") .Range("1:4") = "x";"Y";"Z";"B"
End with
OR
obj.Worksheets("Sheet1").Cells(1,1).Font.Size = 12
obj.Worksheets("Sheet1").Cells(1,1)= "X"
obj.Worksheets("Sheet1").Cells(1,2)= "Y"
obj.Worksheets("Sheet1").Cells(1,3)= "Z"
obj.Worksheets("Sheet1").Cells(1,4)= "B"