+ Reply to Thread
Results 1 to 2 of 2

Adding only a bottom border line to a excel chart

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Moscow
    MS-Off Ver
    Excel 2010
    Posts
    291

    Adding only a bottom border line to a excel chart

    Hi all please help.

    Basic question, but it seems there is no solution to it. How do you add only a bottom border line to an excel chart? Not all 4 borders, but one.

    Many thanks in advance!
    Last edited by Alexander_Golinsky; 06-10-2015 at 07:24 AM.

  2. #2
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Moscow
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: Adding only a bottom border line to a excel chart

    Well, do not believe it has any solution. Here is my workaround:

    Sub Bottom_edge()
    Dim sh As Worksheet
    Dim ch As ChartObject
    
    For Each sh In ActiveWorkbook.Sheets
        For Each ch In sh.ChartObjects
            ch.Select
            ActiveChart.Shapes.AddConnector(msoConnectorStraight, 0, ch.Height, ch.Width, ch.Height).Select
            Selection.ShapeRange.Line.ForeColor.RGB = RGB(0, 0, 0)
        Next
    Next
    
    End Sub
    The procedure simulates the bottom border by inserting line exactly like it is the bottom border. The key issue is if you copy then the chart, the border goes with it.

+ 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. VBA to add a double line bottom border based on cell value
    By KDF in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-09-2013, 06:16 PM
  2. Adding only bottom line border to chart
    By Alexander_Golinsky in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2012, 02:50 AM
  3. Replies: 3
    Last Post: 10-27-2011, 04:06 AM
  4. Excel chart missing bottom border in Word
    By Beeblebrox in forum Word Formatting & General
    Replies: 15
    Last Post: 09-07-2011, 12:10 PM
  5. Missing bottom border of Excel chart in Word 2007
    By karynNL in forum Excel General
    Replies: 1
    Last Post: 09-22-2010, 02:08 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