on 06-29-2008 1:38 PM
Hi Experts,
I want to set the bottom line (Border for cell but ony with bottom line) to a cell in Excel via OLE.Now I have known the following codes,How would I continue?
CALL METHOD OF sheet 'Range' = range
EXPORTING #1 = 'A5:M5'.
CALL METHOD OF range 'BORDERS' = border.
SET PROPERTY OF border1 'WEIGHT' = 2.
SET PROPERTY OF border1 'ColorIndex' = '3'
About the lineStyle,I just want the bottom line,not a full border.
Try,
bottom
call method of cell 'BORDERS' = borders exporting #1 = '4'.
set property of borders 'LineStyle' = '8'.
set property of borders 'WEIGHT' = we.
set property of borders 'ColorIndex' = 'xlAutomatic'.
free object borders.
left #1 = 1
right #1 = 2
top #1 = 3.
Regards
J
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.