+ Reply to Thread
Results 1 to 2 of 2

help me.. how to set border Preset=None

  1. #1
    Registered User
    Join Date
    02-21-2005
    Posts
    1

    help me.. how to set border Preset=None

    i want to format cells
    and setting preset = None (as same appear in Format Cells->Border)


    i want to do this stuff programmatically

    please any one help me..

    Thanks In advance..

  2. #2
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Blackpool, UK
    Posts
    137
    Hi,

    if you record a macro and then look at the code, you can often find how Excel does what you are after. Sometimes it's al ittle long-winded, but it gets there. If you record a macro to do this Excel generates the following code:

    Selection.Borders(xlDiagonalDown).LineStyle = xlNone
    Selection.Borders(xlDiagonalUp).LineStyle = xlNone
    Selection.Borders(xlEdgeLeft).LineStyle = xlNone
    Selection.Borders(xlEdgeTop).LineStyle = xlNone
    Selection.Borders(xlEdgeBottom).LineStyle = xlNone
    Selection.Borders(xlEdgeRight).LineStyle = xlNone
    Selection.Borders(xlInsideVertical).LineStyle = xlNone
    Selection.Borders(xlInsideHorizontal).LineStyle = xlNone

    HTH

    Art

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1