Getting data from Google multiple sheets into Excel

andyeaston

New Member
Joined
Sep 20, 2016
Messages
16
All -

I've checked previous threads on this topic and havent found what I'm looking for.

In my VBA I am downloading data from the first sheet on a Google Sheet workbook. This has not been a problem. I am using this code...

' Download Production Schedule as csv


ActiveWorkbook.FollowHyperlink Address:="https://docs.google.com/spreadsheets/d/1rnNjaCV8pXrwoHQW6pnh8RTHYNNl5dvfT7Z0pE7-0Ps/export?format=csv" & strSKU, NewWindow:=True



' Open and activate Production Schedule

Workbooks.Open "C:\Users\aeaston\Downloads\MOTT LLC ORDER PRODUCTION SCHEDULE - Schedule.csv"
Workbooks("MOTT LLC ORDER PRODUCTION SCHEDULE - Schedule.csv").Activate

The problem comes when I try to do another download to download the 4th sheet called 'wood-glass door' it only wants to download the first sheet again

Any ideas?
Thank you!!!
 

Some videos you may like

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Watch MrExcel Video

Forum statistics

Threads
1,123,277
Messages
5,600,689
Members
414,400
Latest member
Damocles2021

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
Top