24. Januar 2014 08:31
24. Januar 2014 10:26
24. Januar 2014 10:38
24. Januar 2014 13:01
24. Januar 2014 13:29
Matthias Vismann hat geschrieben:der Befehl ist:
Sheet.Range('D1:H1').Borders.Item(3).LineStyle := 7;
24. Januar 2014 13:34
24. Januar 2014 15:21
AddBorder(Cell1 : Code[10];Cell2 : Code[10];RowNo : Integer;Left : Boolean;Right : Boolean;Top : Boolean;Bottom : Boolean)
IF Bottom THEN BEGIN
Worksheet.Range(Cell1 + FORMAT(RowNo),Cell2 + FORMAT(RowNo)).Borders.Item(9).LineStyle := 6;
Worksheet.Range(Cell1 + FORMAT(RowNo),Cell2 + FORMAT(RowNo)).Borders.Item(9).Weight := 2;
END;
IF Top THEN BEGIN
Worksheet.Range(Cell1 + FORMAT(RowNo),Cell2 + FORMAT(RowNo)).Borders.Item(8).LineStyle := 6;
Worksheet.Range(Cell1 + FORMAT(RowNo),Cell2 + FORMAT(RowNo)).Borders.Item(8).Weight := 2;
END;
IF Left THEN BEGIN
Worksheet.Range(Cell1 + FORMAT(RowNo),Cell2 + FORMAT(RowNo)).Borders.Item(7).LineStyle := 6;
Worksheet.Range(Cell1 + FORMAT(RowNo),Cell2 + FORMAT(RowNo)).Borders.Item(7).Weight := 2;
END;
IF Right THEN BEGIN
Worksheet.Range(Cell1 + FORMAT(RowNo),Cell2 + FORMAT(RowNo)).Borders.Item(10).LineStyle := 6;
Worksheet.Range(Cell1 + FORMAT(RowNo),Cell2 + FORMAT(RowNo)).Borders.Item(10).Weight := 2;
END;
//Zellfüllung:
Worksheet.ActiveCell.Interior.ColorIndex := XX;
//Textfarbe
Worksheet.ActiveCell.Font.ColorIndex := XX;
// COLORINDEX
// Color XX
// 1 = black
// 2 = white
// 3 = red
// 4 = green
// 5 = blue
// 6 = yellow
// 7 = magenta
// 8 = cyan
// 9 = darkred
// 10 = darkgreen
// 11 = darkblue
// 12 = ocker
// 13 = purple
// 14 = bluegreen
// 15 = grey
// 16 = darkgrey
// 17 = greyblue
// 18 = lightpurple
// END COLORINDEX