Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.06.27;
Скачать: 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 вся ветка

Текущий архив: 2002.06.27;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.017 c
3-88712
Fissher
2002-06-02 16:35
2002.06.27
Работа с BD без Alias - ов


4-89073
Sirus
2002-04-30 07:31
2002.06.27
Как изменить текущее разрешение экрана и цвет рабочего стола


1-88828
Twinc №
2002-06-16 22:26
2002.06.27
install.sh


1-88803
Shadow
2002-06-16 20:22
2002.06.27
Как сосчитать кол-во одинаковых символов в строке?


1-88952
Иван
2002-06-14 23:38
2002.06.27
Wrapper на ActiveX делает нехорошие вещи