Trying to create & manipulate Excel SS via VB. Stuck trying to replicate the Macro Code below as to the syntax required in VB. i.e how to represent a Range of cells.
Any Takers?
Range("A1:A10".Select
With Selection.Interior
.ColorIndex = 19
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
I've got at the moment :
With gbobj_OrderPadxls.Sheets(1).Range(????????)
With .Interior
.ColorIndex = 19
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
.mergecells = True
End With
Also, does anyone know of any references to this subject anywhere? (writing excel with VB)
Cheers.
Any Takers?
Range("A1:A10".Select
With Selection.Interior
.ColorIndex = 19
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
I've got at the moment :
With gbobj_OrderPadxls.Sheets(1).Range(????????)
With .Interior
.ColorIndex = 19
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
.mergecells = True
End With
Also, does anyone know of any references to this subject anywhere? (writing excel with VB)
Cheers.