+ Reply to Thread
Results 1 to 4 of 4

Importing data using VBA into excel from Google Spreadsheet

  1. #1
    Forum Contributor
    Join Date
    04-13-2017
    Location
    Buchares
    MS-Off Ver
    2016
    Posts
    117

    Question Importing data using VBA into excel from Google Spreadsheet

    Hey guys,

    I want to import data into an excel Sheet from a Google Spreadsheet page than has all privileges to be edited and viewed. The test link is below :


    https://docs.google.com/spreadsheets...it?usp=sharing

    I’ve tried several methods such as “Query and Connections” or Extract Data from Web but nothing seems to work.

    Did anybody tried or found a solution for this kind of connection ? (It can be copy paste sheet , that would be good too)

    Thank you,
    Alex

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Importing data using VBA into excel from Google Spreadsheet

    Use a get data from web pointed at:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-13-2017
    Location
    Buchares
    MS-Off Ver
    2016
    Posts
    117

    Re: Importing data using VBA into excel from Google Spreadsheet

    Quick Question : How did you generate that link to the direct sheet? Where i can found the rules (if there are any)?

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Importing data using VBA into excel from Google Spreadsheet

    From SO: https://stackoverflow.com/questions/...ultiple-sheets

    To download a specific sheet as a CSV file, replace {key} with the document's ID and {sheet_name} with the name of the sheet to export:

    https://docs.google.com/spreadsheets/d/{key}/gviz/tq?tqx=out:csv&sheet={sheet_name}

    The datasource protocol is quite flexible. Various other options include:

    Response Format: Options include tqx=out:csv (CSV format), tqx=out:html (HTML table), and tqx=out:json (JSON data).

    Export part of a sheet: Supply the range={range} option, where the range can be any valid range specifier, e.g. A1:C99 or B2:F.

    Execute a SQL query: Supply the tq={query} option, such as tq=SELECT a, b, (d+e)*2 WHERE c < 100 AND x = 'yes'.

    Export textual data: Supply the headers=0 option in case your fields contain textual data, otherwise they might be cut out during export.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Import data from Google Spreadsheet to Excel
    By Avivi24 in forum Excel General
    Replies: 1
    Last Post: 08-28-2017, 04:35 AM
  2. Importing Macro enabled spreadsheet into Google sheets and maintaining all properties
    By ChrisCD in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 09-14-2016, 09:36 PM
  3. Replies: 0
    Last Post: 09-14-2016, 09:36 PM
  4. Importing Data From Google Sheet To Excel
    By JohnDoh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2015, 10:37 AM
  5. Importing Google Trends CSV file into an Excel spreadsheet automatically
    By GsExcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2014, 09:13 AM
  6. Replies: 6
    Last Post: 01-29-2014, 08:32 AM
  7. Importing data from Google maps into my spreadsheet
    By cozzy in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 10-14-2013, 09:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1