Help with Importing CSV from Dynamic URL

Mike_Poserina

New Member
Joined
Jan 16, 2009
Messages
3
Hello,
I've used it as a resource as much as I could, but I've hit a wall. I was hoping someone can point me in the right direction.
I've found one solution so far, but I know there has to be a better one.
I need to import a CSV file which is generated from this address:
Example:
http://www.google.com/insights/search/overviewReport?q=excel%20help&cmpt=q&content=1&export=2[/URL]
I'm currently using code along the lines of:
Rich (BB code):
Set browser = CreateObject("InternetExplorer.Application")
 
browser.Navigate("http://www.google.com/insights/search/overviewReport?q=excel help&cmpt=q&content=1&export=2")
 
SendKeys "{LEFT}"
SendKeys "{LEFT}"
SendKeys "{ENTER}"

But..
(a) It opens a new tab in IE7
(b) It assums control of the 'File Download' window to open the file. (Not Ideal)

I have also tried:
Rich (BB code):
Workbooks.Open Filename:="http://www.google.com/insights/search/overviewReport?q=excel%20help&cmpt=q&content=1&export=2"

But the file name is not in the URL and thus can not open it.
Does anyone have an idea on how to solve this problem or a prior post they can direct me to?
Thanks a bunch.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,223,771
Messages
6,174,441
Members
452,564
Latest member
crangelag

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