ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to Modify the style of a picture with VBA (https://www.excelbanter.com/excel-programming/415887-how-modify-style-picture-vba.html)

R Tanner

How to Modify the style of a picture with VBA
 
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 Tanner

How to Modify the style of a picture with VBA
 
On Aug 19, 12:35 pm, R Tanner wrote:
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....

R Tanner

How to Modify the style of a picture with VBA
 
On Aug 19, 7:42 pm, Dave Peterson wrote:
One more to try:

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

R Tanner wrote:

On Aug 19, 12:35 pm, R Tanner wrote:
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....


--

Dave Peterson


okay Thanks. I will try your suggestions...


All times are GMT +1. The time now is 12:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com