Elbow Connector - VBA Help to change format

bposaner

Board Regular
Joined
May 28, 2002
Messages
74
I'm trying to change the colour and thickness of my elbow connector via a macro, but cant find how to do it. Tried to record it, but nothing is recorded...DOH!
Searching is not giving me much help, can anybody help!!!

All I want to do is be able to change the thickness/colour or the elbow line depending on a number. Thats it! So how can i change the colour/width is a macro?

Cheers for the help!
bposaner
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
For example:
Code:
    With ActiveSheet.Shapes("Elbow Connector 1")
        With .Line
            .Visible = msoTrue
            .ForeColor.RGB = RGB(255, 0, 0) ' Red
            .Visible = msoTrue
            .Weight = 3 ' 3pt line weight
        End With
    End With
 
Upvote 0
Rorya
Thanks for the quick response!
Cheers, knew it would be a simple as this, but just could not find an example!!
 
Upvote 0

Forum statistics

Threads
1,224,579
Messages
6,179,656
Members
452,934
Latest member
mm1t1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top