Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 13:08
kingmaker2008 kingmaker2008 is offline
Registered User
 
Join Date: Jun 2008
Posts: 3
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, 04: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, 14:21
kingmaker2008 kingmaker2008 is offline
Registered User
 
Join Date: Jun 2008
Posts: 3
How can i do that.

Could u explain????
Reply With Quote
  #4 (permalink)  
Old 06-23-08, 08:22
karthic_85 karthic_85 is offline
Registered User
 
Join Date: Dec 2007
Posts: 36
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 08: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

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