Hi All
I'm trying to set a row of cells with their top borders thin and blue. I have tried a couple of ways but can't get them to run.
First I tried the following code from the Wiki:-
for x:=0 to 5 do
begin
SelectedCell:=ARS.ActiveWorksheet.WriteBorders(y,x,[cbNorth]);
ARS.ActiveWorksheet.WriteBorderLineStyle(SelectedCell,cbNorth, lsThin, scBlue);
end
This throws up an error Got "ShortInt", expected "TsLineStyle" after scBlue
I then tried this from a previous forum thread but again couldn't get it to run:-
SelectedCell := ARS.ActiveWorksheet.WriteText(5, 2, 'abc');
SelectedCell ^.Borders[[cbNorth, cbSouth]] := CellBorderStyle(lsThick, scGreen);
It didn't like .borders - "no ident" and Got "Word", expected "TsLineStyle" after scGreen
Any suggestions (Helpful

)