Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default Make rectangle border solid

Thanks, Dave. Where I was getting confused was I kept going to
Patterned Lines looking for a way to set it to solid. The way to get
rid of the pattern was just to select a standard color from the
Palette. James

Dave Peterson wrote:
Rightclick on the rectangle and choose Format|autoshape.
Then choose the Color and lines tab to change what you want.

I modified my recorded macro to this:

Option Explicit
Sub testme()
Dim myShape As Shape

For Each myShape In ActiveSheet.Shapes
If myShape.Type = msoAutoShape Then
If myShape.AutoShapeType = msoShapeRectangle Then
With myShape
.Fill.Visible = msoTrue
.Fill.Solid
.Fill.ForeColor.SchemeColor = 65
.Fill.Transparency = 0#
.Line.Weight = 4.5
.Line.DashStyle = msoLineRoundDot
.Line.Style = msoLineSingle
.Line.Transparency = 0#
.Line.Visible = msoTrue
.Line.ForeColor.SchemeColor = 10
.Line.BackColor.RGB = RGB(255, 255, 255)
End With
End If
End If
Next myShape
End Sub

But it did more than you asked.

Zone wrote:

I have one shape in my worksheet ("Rectangle 1"). I somehow made the
line (border around the rectangle) have a pattern. I want to reset the
line to a solid color. I can select the shape first, but then using
record doesn't help because I can't find any button to set it back to a
solid color. TIA, and thanks to everyone for all the help in this
newsgroup. James


--

Dave Peterson


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make the default border heavier whenever any cell is selected? Songbirdie Setting up and Configuration of Excel 4 March 5th 09 10:08 PM
Do you know why this border info of Excel sheet make it's size lar wolfhyun Excel Discussion (Misc queries) 0 February 3rd 09 02:38 PM
Stacked and solid bar graph in one tamir32880 Charts and Charting in Excel 3 April 3rd 08 09:47 AM
How do I make the border of an active cell in Excel darker? luv2sing Excel Discussion (Misc queries) 1 July 22nd 06 04:36 PM
How do I make a border flash, blink or otherwise? DWALLACE Excel Worksheet Functions 2 August 8th 05 02:45 PM


All times are GMT +1. The time now is 05:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"