+ Reply to Thread
Results 1 to 5 of 5

Add border automatically

  1. #1
    Forum Contributor
    Join Date
    06-27-2014
    Location
    bristol, england
    MS-Off Ver
    excel 2007
    Posts
    264

    Add border automatically

    Hi all, I have tried playing about with Conditional formatting and recording a macro to see code, but just end up baffled, here's what I am trying to achieve,

    if cell B10 has data entered into it, i would like the range of cells B10 to J10 to have a bottom edge border appear Automatically, if the data in B10 is cleared then the border on the range of cells also is removed.

    i Hope this is clear

    many thanks

    Scouse13
    Last edited by Leith Ross; 01-26-2020 at 06:00 PM. Reason: Marked Solved

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Add border automatically

    Hi

    Select B10 and enter the conditional format

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    pick the underline format and and apply the CF to B10:J10
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    07-08-2008
    Location
    New York City
    MS-Off Ver
    2013-2016
    Posts
    157

    Re: Add border automatically

    Hi scouse13
    Add this code to your sheet.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-27-2014
    Location
    bristol, england
    MS-Off Ver
    excel 2007
    Posts
    264

    Re: Add border automatically

    Thanks Richard works a treat

  5. #5
    Forum Contributor
    Join Date
    06-27-2014
    Location
    bristol, england
    MS-Off Ver
    excel 2007
    Posts
    264

    Re: Add border automatically

    Thanks DMA, also works a treat

+ 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. [SOLVED] Apply border automatically based on Conditional Formatting
    By Lola90 in forum Excel General
    Replies: 4
    Last Post: 10-26-2015, 10:25 AM
  2. [SOLVED] Hide/unhide rows and border the table automatically help require
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-13-2015, 04:50 AM
  3. How to add a border line automatically?
    By misterno in forum Excel General
    Replies: 8
    Last Post: 04-01-2013, 03:47 PM
  4. Pivot Table Sorting Automatically Adds Border Lines
    By Psirix in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-06-2013, 05:39 PM
  5. Replies: 2
    Last Post: 05-20-2010, 05:21 PM
  6. Automatically Format Cell Border
    By newbie1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-27-2008, 10:07 AM
  7. Automatically adding border in Excel
    By HMIExcel08 in forum Excel General
    Replies: 2
    Last Post: 05-08-2008, 10:13 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