ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   mvoing picture (https://www.excelbanter.com/excel-programming/430758-mvoing-picture.html)

pgarcia

mvoing picture
 

Hello all,
I have a picture that I would like to move to the next cell if cell A1 is
equal to todays date. Meaning, in Cell A1 is 7/6/2009, cell B1 is 7/7/2009,
I could like to picture to move from cell A1 to cell B1 the next day.
Thanks

jamescox[_92_]

mvoing picture
 


Well, you can move a picture you have inserted into a worksheet to the
left side of a cell with the following syntax in VBA

Activesheet.Shapes("Picture 1").Left = Range("A3").Left

where Picture 1 is the name of the inserted image.

I'm not sure from your description of the problem if you have a whole
set of pictures that have to be moved each day, so I'll leave that to
you...


--
jamescox
------------------------------------------------------------------------
jamescox's Profile: http://www.thecodecage.com/forumz/member.php?userid=449
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=113132



All times are GMT +1. The time now is 01:18 PM.

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