+ Reply to Thread
Results 1 to 6 of 6

Setting borders

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    12

    Setting borders

    I've tried:
    Please Login or Register  to view this content.
    And
    Please Login or Register  to view this content.
    But both give me "Run-time error '438': Object doesn't support this property or method"

    Since I can't find anything anywhere on the interwebs or in Mickeysoft's documentation other than "Borders.LineStyle is how you set a border," any hints as to what I might be doing wrong?

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Setting borders

    Try this

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    09-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Setting borders

    So is it not possible to set:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Setting borders

    (Without selecting it.)

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Setting borders

    This will work

    Please Login or Register  to view this content.
    or if your wanting the border around all cells in range something like this below

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Setting borders

    Thank you.

    So my next question is what's an elegant way to set borders on rMyNamedRange(R,2), (R,4), (R,6-8), (R,14)?

    It looks as though I can't define a variable as Range and use the Union command to assign all those to the variable range, which would allow me to set each border once for multiple cells. Do I have to go through each noncontiguous block of the range one at a time?

+ 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