How to Modify the style of a picture with VBA

R

R Tanner

Hi,

I have copied a range of cells and pasted them as a picture in my
code. I want to modify the style of the picture to have a shadow.
What is the procedure for that?

Thanks
 
R

R Tanner

Hi,

I have copied a range of cells and pasted them as a picture in my
code. I want to modify the style of the picture to have a shadow.
What is the procedure for that?

Thanks

The problem arises because I can't see any of the syntax with the
macro recorder. I change the style, and it records zilch....
 
B

Barb Reinhardt

I think I'd do something like this

myShape.ShapeRange.Shadow.Type = msoShadow5
 
D

Dave Peterson

One more to try:

Dim myShape As Shape
Set myShape = ActiveSheet.Shapes("Picture 1")
myShape.Shadow.Type = msoShadow5
 
R

R Tanner

One more to try:

Dim myShape As Shape
Set myShape = ActiveSheet.Shapes("Picture 1")
myShape.Shadow.Type = msoShadow5

okay Thanks. I will try your suggestions...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top