Help Changing Border Color

Charlie39

New Member
Joined
May 16, 2011
Messages
1
Hello, I am trying to change the color of the border of an object in Excel but this ends up filling up the object with that color.... Sorry, new at this.

Sub Macro1()

For i = 2 To 51
Range("active_Region").Value = Range("Sheet2!A" & i).Value
ActiveSheet.Shapes(Range("active_Region").Value).Select
Selection.ShapeRange.Fill.ForeColor.RGB = Range(Range("active_Region_Code").Value).Interior.Color

Next i

ActiveSheet.Shapes.Range(Array("AutoShape 2")).Select
End Sub
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,224,548
Messages
6,179,451
Members
452,915
Latest member
hannnahheileen

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