+ Reply to Thread
Results 1 to 8 of 8

VBA: Remove vertical borders if cell is blank

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    241

    VBA: Remove vertical borders if cell is blank

    I have been trying to piece together some script to remove vertical borders for a row if there is no data in the first column for that row. Following is the script I have so far:

    Please Login or Register  to view this content.
    Any help in resolving would be appreciated.

    Thanks,

    Met

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow


    Maybe what you call empty is not empty but again as we can't guess without any attachment neither some details …

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: VBA: Remove vertical borders if cell is blank

    How about
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    241

    Re: VBA: Remove vertical borders if cell is blank

    Hmm.. Still no luck. I have attached a sample spreadsheet with expectations.

    Thanks,

    Met
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: VBA: Remove vertical borders if cell is blank

    Maybe
    Please Login or Register  to view this content.
    If that doesn't work, please supply a workbook that includes your code.

  6. #6
    Forum Contributor
    Join Date
    02-16-2006
    Posts
    241

    Re: VBA: Remove vertical borders if cell is blank

    That did it.

    Thanks,
    Met

  7. #7
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,417

    Re: VBA: Remove vertical borders if cell is blank

    Quote Originally Posted by Fluff13 View Post
    Maybe
    Please Login or Register  to view this content.
    If that doesn't work, please supply a workbook that includes your code.
    If I am not mistaken, you can do this without using a loop...
    Please Login or Register  to view this content.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: VBA: Remove vertical borders if cell is blank

    Quote Originally Posted by Metrazal View Post
    That did it.

    Thanks,
    Met
    You're welcome & thanks for the feedback

+ 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] Add columns and remove borders
    By DylanC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-17-2015, 10:35 AM
  2. [SOLVED] remove borders below last row of data
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-02-2014, 09:00 AM
  3. [SOLVED] Concatenate If Blank - remove blank line if first cell is blank
    By ker9 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2014, 02:14 PM
  4. Fill blank vertical cells with row's horizontal cell values
    By ExcellentM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2013, 02:34 PM
  5. [SOLVED] Remove Borders in VBA
    By dadrew in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-06-2012, 12:24 PM
  6. how to remove borders???
    By jgomez in forum Excel General
    Replies: 1
    Last Post: 01-27-2012, 12:18 AM
  7. When I move a vertical border it deletes horizontal borders
    By HMD in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-14-2005, 02:05 AM

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