Hello,
From my FWH-application, I want to draw a rectangle around a certain number of cells.
How can I accomplish that?
Thanks a lot for any help.
Rectangle in Excel (Solved)
Rectangle in Excel (Solved)
Last edited by driessen on Mon Oct 28, 2019 9:11 am, edited 1 time in total.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Re: Rectangle in Excel
Michel:
I hope this can help you
That's all.
Regards
I hope this can help you
Code: Select all
// lines style
#Define xlContinuous 1
#Define xlDash -4115
#Define xlDashDot 4
#Define xlDashDotDot 5
#Define xlDot -4118
#Define xlDouble -4119
#Define xlSlantDashDot 13
#Define xlLineStyleNone -4142
#Define xlEdgeLeft 7
#Define xlEdgeTop 8
#Define xlEdgeBottom 9
#Define xlEdgeRight 10
#define xlThick 4
#define xlMedium -4138
….
….
……
….
….
oSheet:Cells(nRow,nCol):Borders(xlEdgeLeft):LineStyle := xlContinuous
oSheet:Cells(nRow,nCol):Borders(xlEdgeLeft):Weight := xlThick
oSheet:Cells(nRow,nCol):Borders(xlEdgeTop):LineStyle := xlContinuous
oSheet:Cells(nRow,nCol):Borders(xlEdgeTop):Weight := xlThick
oSheet:Cells(nRow,nCol):Borders(xlEdgeRight):LineStyle := xlContinuous
oSheet:Cells(nRow,nCol):Borders(xlEdgeRight):Weight := xlThick
oSheet:Cells(nRow,nCol):Borders(xlEdgeBottom):LineStyle := xlContinuous
oSheet:Cells(nRow,nCol):Borders(xlEdgeBottom):Weight := xlThick
Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Re: Rectangle in Excel
Waaw,
Great. Thank you so much for your help.
Great. Thank you so much for your help.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7