+ Reply to Thread
Results 1 to 6 of 6

make border wt selection only

Hybrid View

  1. #1
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85

    make border wt selection only

    please help me coding only with my selection that i want to have a border.

    e.g


    a b c d
    a
    a
    1 2 3 4
    5 6 7 8
    9 9 9 9
    1 2

    i want to put a border with only the numbers. starting with cell a7 to d7 or until it has a value going down.

    thanks

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: make border wt selection only

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85

    Re: make border wt selection only

    Start borders in HeAder Invoice, AMount and make it center.
    Thanks
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: make border wt selection only

    Sub ApplyBorder()
    Dim rFound As Range, lRw As Long, iCol As Integer
    
    Set rFound = Range("A:A").Find("Invoice Number")
    
    If Not rFound Is Nothing Then
        Application.ScreenUpdating = False
        With rFound
            lRw = .End(xlDown).Row
            iCol = .End(xlToRight).Column - .Column + 1
            With .Resize(lRw - .Row + 1, iCol).Borders
                .LineStyle = xlContinuous
                .Weight = xlThin
            End With
        End With
        Application.ScreenUpdating = True
    End If
    
    End Sub

  5. #5
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85

    Re: make border wt selection only

    thanks, complicated code for me :-), ill try this later when get home.

  6. #6
    Registered User
    Join Date
    03-10-2015
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    85
    Quote Originally Posted by ash3angel View Post
    thanks, complicated code for me :-), ill try this later when get home.
    thanks this awesome, please help me understand the code. thank u very much

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. shape border to red upon selection from drop down
    By jw01 in forum Excel General
    Replies: 1
    Last Post: 09-29-2011, 10:19 AM
  2. color border, based on selection....
    By jw01 in forum Excel General
    Replies: 1
    Last Post: 05-24-2011, 04:18 PM
  3. Border the selection cell
    By Thyagaraj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-31-2006, 04:43 PM
  4. [SOLVED] Cell Selection, Border Changing
    By Phil H in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2006, 11:15 PM
  5. Animated selection border
    By Luke in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2005, 12:05 PM

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