Excel VBA - Export file from website into Excel

Hi Experts,

I have vba code which logs successfully into a website and goes to a page,  which has a link <a id="btnExport" href="javascript:__doPostBack('btnExport','')">Export</a>, which when clicked it prompts the user to save the search resultset displayed on the page as a csv file.

How can I copy the contents on Sheet1 of the csv file prompted to be saved straight into a new worksheet of the active workbook?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Russell FoxDatabase DeveloperCommented:
If the website code wants to save the file, you'll need to let it do that, first. Save the file somewhere then use VBA to open and copy the data.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
> "I have vba code"

why not modify the VBA code to import the CSV file too?  Where does the VBA code run from?
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.