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

Границы ячеек в Excel   Найти похожие ветки 

 
ef2000   (2003-01-31 17:23) [0]

Здравствуйте!

Подскажите как задать границу определенной ячейке, или диапазону ячеек в Еxcel. Использую TExcelApplication.

Заранее благодарен.


 
ef2000   (2003-02-01 15:34) [1]

up


 
ef2000   (2003-02-03 08:24) [2]

2up


 
Романов Р.В. ©   (2003-02-03 08:50) [3]

uses Excel97;

procedure SetEdge(Range: OleVariant);
begin
Range.Borders[xlEdgeLeft].LineStyle := xlContinuous;
Range.Borders[xlEdgeLeft].Weight := xlMedium;
Range.Borders[xlEdgeTop].LineStyle := xlContinuous;
Range.Borders[xlEdgeTop].Weight := xlMedium;
Range.Borders[xlEdgeBottom].LineStyle := xlContinuous;
Range.Borders[xlEdgeBottom].Weight := xlMedium;
Range.Borders[xlEdgeRight].LineStyle := xlContinuous;
Range.Borders[xlEdgeRight].Weight := xlMedium;
if Range.Columns.Count > 1 then
begin
Range.Borders[xlInsideVertical].LineStyle := xlContinuous;
Range.Borders[xlInsideVertical].Weight := xlThin;
end;
if Range.Rows.Count > 1 then
begin
Range.Borders[xlInsideHorizontal].LineStyle := xlContinuous;
Range.Borders[xlInsideHorizontal].Weight := xlThin;
end;
end;



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

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



Память: 0.45 MB
Время: 0.011 c
1-38163
Y
2003-02-04 10:26
2003.02.13
На время запретиь пользователю делать что-либо


7-38610
S.A.S.
2002-12-13 12:08
2003.02.13
RS485 mode


3-38072
s_o
2003-01-27 08:10
2003.02.13
кодировка в Delphi


7-38588
Zhirnov Maxim
2002-12-07 13:07
2003.02.13
Как организовать печать на принтере


1-38298
Сергей
2003-02-05 22:18
2003.02.13
Перерисовка формы




   Наверх