Getting photo data from eBay - can I save Activesheet.Shapes(1) ?

TomPC

Board Regular
Joined
Oct 13, 2011
Messages
95
Hi All

I've got Excel 2010 and Windows 7.

My business buys lots of stock from eBay and it would be helpful to download my purchase history into Excel. Unfortunately, there is no export functionality (see How can I download my purchase history ?: Answer Center: eBay Answer Center).

I'm basically after: eBayID, Description, Date, Price, P&P, Seller... and photo

I have already built something where I manually copy and paste an eBay page into Excel and then extract the data I need.

The only thing I have left to do is see if I can somehow suck in the photo.

The photos are referred to as eg activesheet.shapes(n).

What I'd love to do is save that file down somehow. I did see someone try to do it using charts (http://www.mrexcel.com/forum/excel-questions/666856-code-replace-embedded-image-filename-url.html) but I couldn't get the code to work.

The part that threw an error was:

Code:
Charts.Add
            ActiveChart.Location Where:=xlLocationAsObject, Name:=SheetNo

Any ideas how to save activesheet.shape(1) as a file ?

Thanks

Tom
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Try something like this with you picture pasted into Chart object.
Code:
Dim Currentchart As Chart
Dim fname As String
Set Currentchart = Sheets("Sheet1").ChartObjects(1).Chart
fname = ThisWorkbook.Path & "\temp.gif"
Currentchart.Export Filename:=fname, filtername:="Gif"
MsgBox "Run"
 
Upvote 0
Hi Mick

Thanks for that and thanks for helping.

I am at the stage where I've identified the picture and dropped it into a variable:

set objPic = activesheet.shapes(n)

What code would I need to get it into Currentchart as you have it above?

Thanks eversomuch!

Tom
 
Upvote 0
Something like this works.
Code:
Dim fname As String
ActiveSheet.ChartObjects("Chart 3").Activate
ActiveChart.ChartArea.Select
ActiveSheet.Shapes("Picture 9").Cut
ActiveChart.Paste
fname = ThisWorkbook.Path & "\temp.gif"
ActiveChart.Export Filename:=fname, filtername:="Gif"
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top