Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picture in Excel

Status
Not open for further replies.

NewbyOld

Programmer
Mar 1, 2001
6
GB
Hi,

I am trying to write a macro that will take a set of excel charts and then copy them as pictures into another spreadsheet. The graphs will be updated every month and the most recent version should replace the old version. The problem is that pictures seem to be numbered dynamically in Excel. For example if you cut and then paste back a picture it will have a different number than before eg Picture 339 will become Picture 341 when pasted back. My macro fails because when it tries to delete the old picture it fails to find it and I end up with one picture on top of another. I have tried using the Shapes collection to no avail, the same thing happens.
 
Please post this in the VBA forum: Forum707

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top