BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Excel LineStyle setting

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Richard Teller
Guest





PostPosted: Sun Dec 21, 2003 4:42 am    Post subject: Excel LineStyle setting Reply with quote



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





PostPosted: Sun Dec 21, 2003 1:00 pm    Post subject: Re: Excel LineStyle setting Reply with quote



< Is there a reason why I cannot set LineStyle to xlDouble
(for Borders etc).
Quote:


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





PostPosted: Sun Dec 21, 2003 7:28 pm    Post subject: Re: Excel LineStyle setting Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.