Showing posts with label Remove Chart Borders Using VBA. Show all posts
Showing posts with label Remove Chart Borders Using VBA. Show all posts

Saturday, January 19, 2013

Remove Chart Borders Using VBA

If you want to remove the chart borders . Try this Macro
















Sub remove_borders_from_chart()
    Dim cht As Chart
    ' change chart name here
    Set cht = Sheets("Sheet1").ChartObjects("Chart 3").Chart
    'Remove border from chart area
    cht.ChartArea.Border.LineStyle = xlNone
    ' remove border from Plot Area
    cht.PlotArea.Border.LineStyle = xlNone
End Sub

Import data from SQL

Macro to import data from SQL using ADO connection string: Sub Import_data_from_SQL() ' Tools -> References -> Microsoft Active...