If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Table border using scripts

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-17-08, 12:08
kingmaker2008 kingmaker2008 is offline
Registered User
 
Join Date: Jun 2008
Posts: 7
Question Table border using scripts

Hi,

I want to table apply border for particular range in excel using VB script.

Please help
Reply With Quote
  #2 (permalink)  
Old 06-18-08, 03:23
chergh chergh is offline
Registered User
 
Join Date: Apr 2008
Posts: 6
Have you tried recording a macro?
Reply With Quote
  #3 (permalink)  
Old 06-18-08, 13:21
kingmaker2008 kingmaker2008 is offline
Registered User
 
Join Date: Jun 2008
Posts: 7
How can i do that.

Could u explain????
Reply With Quote
  #4 (permalink)  
Old 06-23-08, 07:22
karthic_85 karthic_85 is offline
Registered User
 
Join Date: Dec 2007
Posts: 37
Try this

with ActiveCell.Borders
.Color = RGB(0,0,0)
.Item(xlEdgeTop).Weight = xlThick
.Item(xlEdgeLeft).Weight = xlThick
.Item(xlEdgeBottom).Weight = xlThick
.Item(xlEdgeRight).Weight = xlThick
End with




for specific range :
Range("a1", "b10").Borders.Weight = xlThick
__________________
Meyyappan

Last edited by karthic_85; 06-23-08 at 07:25.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On