Sharid
Well-known Member
- Joined
- Apr 22, 2007
- Messages
- 1,066
- Office Version
- 2016
- Platform
- Windows
I have a vba code that extracts ebay product details the code works fine if i am using a direct url in the code
Original Code for search, but only searches 1 item
This variation of the url takes the seach item from Sheet1 A1 and places it into ebay
With the above URL I can get my search item to pop up in ebay search, however nothing is extracted. As you can see this is missing as it keeps giving me an error. &_sacat=0"
I can not work out what the issue is as only the url layout changes. The url is for the ebay search page and NOT for the home page of https://www.ebay.co.uk/ it might work better if the search item from Sheet1 A1 is placed in here and then the search page pulls up the searched products.
I tried this, but it keeps giving me an "Expected : end of statement error" or a "Syntax error"
Thanks for having a look
Original Code for search, but only searches 1 item
Code:
.Navigate2 "https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=jackets&_sacat=0"
This variation of the url takes the seach item from Sheet1 A1 and places it into ebay
Code:
.Navigate2 "https://www.ebay.co.uk/= & Replace(Worksheets("Sheet1").Range("A1").Value, " ", "+")
With the above URL I can get my search item to pop up in ebay search, however nothing is extracted. As you can see this is missing as it keeps giving me an error. &_sacat=0"
I can not work out what the issue is as only the url layout changes. The url is for the ebay search page and NOT for the home page of https://www.ebay.co.uk/ it might work better if the search item from Sheet1 A1 is placed in here and then the search page pulls up the searched products.
I tried this, but it keeps giving me an "Expected : end of statement error" or a "Syntax error"
Code:
.Navigate2 "https://www.ebay.co.uk/_nkw = & Replace(Worksheets([B]"Sheet1"[/B]).Range("A1").Value, " ", "+")
Thanks for having a look
Last edited: