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

Как выделить цветом и обвести ячейку в Excel?   Найти похожие ветки 

← →
Dmitr   (2002-06-26 14:04) [0]

Подскажите пожалуйста как обвести ячейку или диапазон в Excel...


← →
kat ©   (2002-06-26 14:19) [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;


← →
Dmitr   (2002-07-05 12:18) [2]

Спасибо Kat извини что поздно.....



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

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



Память: 0.45 MB
Время: 0.01 c
1-81365
Brand
2002-07-13 23:20
2002.07.25
Edit1.Text (***)


1-81241
^Sanya
2002-07-14 16:37
2002.07.25
Мастера, дайте пожалуйста совет!


1-81295
kserg@ukr.net
2002-07-11 18:36
2002.07.25
StringGrid - как узнать прорисованы ли у StringGrid-a ScrollBar-ы


3-81167
GAlexis
2002-06-27 12:18
2002.07.25
Орфография


3-81149
kaif
2002-06-28 23:17
2002.07.25
FK в IB6.0 - Firebird. Невозможно массовое удаление-добавление




   Наверх