Turn Off Shape Glow

The following code will turn on the glow for a shape and set the color.
Sub Macro1()
Dim shp As Shape
Set shp = ActiveSheet.Shapes("Rounded Rectangle 2")
With shp.Glow
    .Radius = 18
    .Color.ObjectThemeColor = msoThemeColorAccent1
End With
End Sub

Open in new window

Now, my question is, how do I turn it off.  I have tried
.Color.ObjectThemeColor = msoNotThemeColor

Open in new window

but I get a value out of range error.  Do I just set the radius to zero?  It "works" but seems cheesy.  Thanks for the help.

Kyle
LVL 12
kgerbChief EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

StephenJRCommented:
I'm sure there must be a better way, but you could set the radius to zero.
andrewssd3Commented:
No - I think that is what you have to do, cheesy or not!  If you look at a shape with no glow, you can get a GlowFormat object for it by saying
Dim shp As Shape
Dim g As GlowFormat

Set shp = ActiveSheet.Shapes("Rounded Rectangle 2")
Set g = shp.Glow

Open in new window

...and it just has a radius of 0 - so I think tat's the only way.  There is no Glow.Delete method or HasGlow property to set.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kgerbChief EngineerAuthor Commented:
andrewssd3,
Thanks, I hadn't thought of making a new shape and then testing the radius property.  I think you're right but I want to leave this open for a few more minutes in case someone comes up with something different.

Kyle
kgerbChief EngineerAuthor Commented:
Thanks for the help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.