+ Reply to Thread
Results 1 to 3 of 3

bottom border on a range of cells using a variable for the row value

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Missoula, MT
    MS-Off Ver
    Excel 2010
    Posts
    8

    bottom border on a range of cells using a variable for the row value

    I'm just stuck. I need to put a bottom border on a range of cells using a variable (lncnt) for the row value. Can someone tell me what's wrong with this line of code?

    Worksheets("print").Range(Cells(lncnt, 1), Cells(lncnt, 4)).Borders.xlBottom = True

    thanks in advance

  2. #2
    Forum Guru tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: bottom border on a range of cells using a variable for the row value

    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-18-2012
    Location
    Missoula, MT
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: bottom border on a range of cells using a variable for the row value

    perfect. thanks so much

+ 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