msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Excel Automation question

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE Automation
Author Message
Robert



Joined: 04 Oct 2007
Posts: 5

PostPosted: Fri Nov 30, 2007 7:46 pm    Post subject: Excel Automation question Reply with quote

Hello,
I'm using VB6 and Excel 2007. I have a program that creates a report then
opens it in an Excel spreadsheet. I have doen a lot of formatting but
cannot figure out how to get it to do lines (ie: hairline). I tried the
following code but it doesn't work:

xlWS.Columns("A:K").Borders(xlEdgeLeft).Weight = xlHairline
xlWS.Columns("A:K").Borders(xlEdgeTop).Weight = xlHairline
xlWS.Columns("A:K").Borders(xlEdgeBottom).Weight = xlHairline
xlWS.Columns("A:K").Borders(xlEdgeRight).Weight = xlHairline
xlWS.Columns("A:K").Borders(xlInsideVertical).Weight = xlHairline
xlWS.Columns("A:K").Borders(xlInsideHorizontal).Weight = xlHairline

Any ideas?

Thank you,
Robert

Archived from group: microsoft>public>vb>ole>automation
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> 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, 2005 phpBB Group