| View previous topic :: View next topic |
| Author |
Message |
Richard Teller Guest
|
Posted: Sun Dec 21, 2003 4:42 am Post subject: Excel LineStyle setting |
|
|
Is there a reason why I cannot set LineStyle to xlDouble (for Borders etc).
All the other constants seem to work. Setting the weight to 1 (or anything
else) doesn't seem to help. I also see this problem in PowerPoint Tables.
Many thanks for any help
Richard Teller
|
|
| Back to top |
|
 |
Deborah Pate (TeamB) Guest
|
Posted: Sun Dec 21, 2003 1:00 pm Post subject: Re: Excel LineStyle setting |
|
|
<
Is there a reason why I cannot set LineStyle to xlDouble
(for Borders etc).
WS.Range['A5', 'D5'].Borders.Item[xlEdgeBottom].Linestyle
:= xlDouble;
WS.Range['A5', 'D5'].Borders.Item[xlEdgeBottom].Color :=
clYellow;
works fine for me. I suspect you're doing something that
resets the linestyle after setting it.
--
Deborah Pate (TeamB) http://delphi-jedi.org
TeamB don't see posts sent via Google or ISPs
Use the real Borland server: newsgroups.borland.com
http://www.borland.com/newsgroups/genl_faqs.html
|
|
| Back to top |
|
 |
Richard Teller Guest
|
Posted: Sun Dec 21, 2003 7:28 pm Post subject: Re: Excel LineStyle setting |
|
|
Yes, you're right again, Deborah.
I was setting the Weight *after* the LineStyle which wipes the LineStyle
unfortunately. Setting the Weight before the LineStyle is fine but
LineStyle := xlDouble seems to have its own weight that you can't set.
Many thanks for the pointer
Richard
"Deborah Pate (TeamB)" <d.pate (AT) blueyonder (DOT) co.not-this-bit.uk> wrote in
message news:VA.00001e01.095020bb (AT) blueyonder (DOT) co.not-this-bit.uk...
| Quote: | Richard Teller:
Is there a reason why I cannot set LineStyle to xlDouble
(for Borders etc).
WS.Range['A5', 'D5'].Borders.Item[xlEdgeBottom].Linestyle
:= xlDouble;
WS.Range['A5', 'D5'].Borders.Item[xlEdgeBottom].Color :=
clYellow;
works fine for me. I suspect you're doing something that
resets the linestyle after setting it.
--
Deborah Pate (TeamB) http://delphi-jedi.org
TeamB don't see posts sent via Google or ISPs
Use the real Borland server: newsgroups.borland.com
http://www.borland.com/newsgroups/genl_faqs.html
|
|
|
| Back to top |
|
 |
|