Page 1 of 1 1
Topic Options
#125263 - 2004-08-18 05:10 PM Borders in excel
Bruno Offline
Fresh Scripter

Registered: 2001-08-08
Posts: 37
Loc: France (Europe)
Hello,
I want to change the borders of some cells in a excel sheet.
I can open it, write etc...
Here that's the VBA code:
    Worksheets(1).Range("A1").Borders.LineStyle = xlDouble
_________________________
There is no stupid question. Whoever seeks is never stupid because he will know ...
Bruno

Top
#125264 - 2004-08-18 05:14 PM Re: Borders in excel
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Should convert fine - you just need to get the enumeration (numeric value) of xlDouble.

{edit}
Try "-4119"
{/edit}


Edited by Richard H. (2004-08-18 05:18 PM)

Top
#125265 - 2004-08-19 04:46 PM Re: Borders in excel
Bruno Offline
Fresh Scripter

Registered: 2001-08-08
Posts: 37
Loc: France (Europe)
Thank you

Where do you get this numeric value ?????
I want to change color style etc...
_________________________
There is no stupid question. Whoever seeks is never stupid because he will know ...
Bruno

Top
#125266 - 2004-08-19 04:51 PM Re: Borders in excel
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
when you open up excel go to : Tools -> Macro -> Visual Basic Editor.
There you have an object browser where you can search for those constants.
If found the corresponding values will be shown in the lower field

_________________________



Top
#125267 - 2004-08-19 04:59 PM Re: Borders in excel
Bruno Offline
Fresh Scripter

Registered: 2001-08-08
Posts: 37
Loc: France (Europe)

Thank you a lot.
_________________________
There is no stupid question. Whoever seeks is never stupid because he will know ...
Bruno

Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 988 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.027 seconds in which 0.011 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org