Вниз
Скачать: CL | DM;

D5 + Excel   Найти похожие ветки 

← →
First_May ©   (2002-06-03 15:11) [0]

Подскажите пожалуйста, как некоторой ячейки в Excel сделать нужную границу?


← →
kat ©   (2002-06-03 16:24) [1]

//определяем диапазон
IDispatch(IR1) := ISheet.Cells.Item[StartRow, StartColumn];
IDispatch(IR2) := ISheet.Cells.Item[StartRow + ods.RecordCount , StartColumn + ColCount - 1];
IRange := ISheet.Range[IR1,IR2];

// это диагональные линии
IRange.Borders.item[xlDiagonalDown].LineStyle := xlNone;
IRange.Borders.item[xlDiagonalUp].LineStyle := xlNone;

//левая линия
IRange.Borders.item[xlEdgeLeft].LineStyle := xlContinuous;
IRange.Borders.item[xlEdgeLeft].Weight := xlThin;
IRange.Borders.item[xlEdgeLeft].ColorIndex := xlAutomatic;

//верхняя
IRange.Borders.item[xlEdgeTop].LineStyle := xlContinuous;
IRange.Borders.item[xlEdgeTop].Weight := xlThin;
IRange.Borders.item[xlEdgeTop].ColorIndex := xlAutomatic;

//нижняя
IRange.Borders.item[xlEdgeBottom].LineStyle := xlContinuous;
IRange.Borders.item[xlEdgeBottom].Weight := xlThin;
IRange.Borders.item[xlEdgeBottom].ColorIndex := xlAutomatic;

//правая
IRange.Borders.item[xlEdgeRight].LineStyle := xlContinuous;
IRange.Borders.item[xlEdgeRight].Weight := xlThin;
IRange.Borders.item[xlEdgeRight].ColorIndex := xlAutomatic;


//это вертикальные в таблице
IRange.Borders.item[xlInsideVertical].LineStyle := xlContinuous;
IRange.Borders.item[xlInsideVertical].Weight := xlThin;
IRange.Borders.item[xlInsideVertical].ColorIndex := xlAutomatic;

//это горизонтальные в таблице
IRange.Borders.item[xlInsideHorizontal].LineStyle := xlContinuous;
IRange.Borders.item[xlInsideHorizontal].Weight := xlThin;
IRange.Borders.item[xlInsideHorizontal].ColorIndex := xlAutomatic;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.008 c
14-89019
drpass
2002-05-26 22:32
2002.06.27
3:2 Динамо-Киев отдыхает!


1-88937
abitur
2002-06-08 16:05
2002.06.27
Выделение памяти


7-89048
star
2002-03-29 15:40
2002.06.27
Как получить доступ к FAT диска ?


1-88811
Charlz
2002-06-16 16:23
2002.06.27
Определение дня недели из заданой даты


3-88771
vicosss
2002-06-05 08:20
2002.06.27
Возможно ли это сделать?




   Наверх