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 > border trouble

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-23-04, 13:06
VBALordCorp VBALordCorp is offline
Registered User
 
Join Date: Jul 2004
Posts: 34
border trouble

so my title sounds like a Xena episode.....

anyway I have a macro all up and running and it does all kinds of wonderful things thanks to the help of many people but I have a minor problem that is more like an irritation for me than anything.

In my spreadsheet I have borders around a bunch of cells

in the code I use

Range( la la la).delete(xltoleft)

(la la la used to represent whatever range my code sticks in there)

only when I do this it doesn't remove the borders like the delete command does when I right click on a range and delete. This really isnt a big deal but I wana fix it. Any help would be nice.

By the way I only wana delete the vertial borders because if I deleted the horizontal and bottom border.
Reply With Quote
  #2 (permalink)  
Old 09-23-04, 22:57
savbill savbill is offline
Registered User
 
Join Date: Feb 2004
Posts: 525
I gave this a try and didn't see the problem. What may be happening with the Shift:=xlToLeft command, is the cells from the Right are moving over to fill the deleted range. If these cells have the same formatting as those deleted it will give the appearance of the format not being deleted. Border in this case.

If you want to delete the contents and formatting try this.
Range(x).Clear
__________________
~

Bill
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