+ Reply to Thread
Results 1 to 7 of 7

Code: Cell Border

  1. #1
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229

    Code: Cell Border

    I would like to know if there is some more efficient way to create cell border beside the recorded code below.

    thanks
    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    re: Code: Cell Border

    Please Login or Register  to view this content.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229

    re: Code: Cell Border

    Thanks it worked

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    re: Code: Cell Border

    Or
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    re: Code: Cell Border

    @shg: Good Grief! I never realised you could do that. Doh! Thanks.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    re: Code: Cell Border

    I learned from someone else's example, just like you.

    What is curious to me is that the Borders collection includes just 4 borders (l/r/t/b), but you can index eight different members by name (edge l/r/t/b, inside h/v, diagonal u/d). It may be convenient, but it's startlingly inconsistent.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    re: Code: Cell Border

    @shg: and yet, when you select a 2x2 cell matrix, you get borders around all four cells.

    I have yet to use diagonal boders ... although I'm sure there are lot's of uses, if I did but know.

    Regards

+ 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