F-150 Phill
New Member
- Joined
- May 19, 2011
- Messages
- 17
Hi all,
I've been doing tons of searching and haven't found any answers to this question. I'm looking for code to edit the tiling options for the fill picture of a shape. I have been able to add the image to the shape using the following code:
Sub AddImage()
MyPic = Application.GetOpenFilename _
("Pictures (*.gif; *.jpg; *.bmp; *.tif),*.gif; *.jpg; *.bmp; *.tif", , "Select Picture to Import")
ActiveSheet.Shapes("Shape 1").Fill.UserPicture MyPic
End Sub
Now i need to edit the picture fill properties where the "Tile Picture as texture" checkbox is checked. I need to set the Offset (X&Y) and Scale (X&Y) using values that are on the excel sheet. All the properties in the red box:
I could guess all day and never get the right code to make it work. Help anybody?
Thanks in advance!
I've been doing tons of searching and haven't found any answers to this question. I'm looking for code to edit the tiling options for the fill picture of a shape. I have been able to add the image to the shape using the following code:
Sub AddImage()
MyPic = Application.GetOpenFilename _
("Pictures (*.gif; *.jpg; *.bmp; *.tif),*.gif; *.jpg; *.bmp; *.tif", , "Select Picture to Import")
ActiveSheet.Shapes("Shape 1").Fill.UserPicture MyPic
End Sub
Now i need to edit the picture fill properties where the "Tile Picture as texture" checkbox is checked. I need to set the Offset (X&Y) and Scale (X&Y) using values that are on the excel sheet. All the properties in the red box:
I could guess all day and never get the right code to make it work. Help anybody?
Thanks in advance!