+ Reply to Thread
Results 1 to 5 of 5

Export Specific Cells/Data from Google Sheet to Excel Desktop using VBA

  1. #1
    Registered User
    Join Date
    09-20-2016
    Location
    Malaysia
    MS-Off Ver
    365
    Posts
    18

    Post Export Specific Cells/Data from Google Sheet to Excel Desktop using VBA

    Hi everyone!

    First, apologize because I have no basic about the VBA. But I need a code/script to solve my problem. My asking is quite long, but I try to make it as short as possible.

    I want to copy the specific cells/data from Google Sheet to the Excel Desktop using VBA. Yes, Excel has a "Get Data" tool, but it could not paste the specific cell or data.

    So, I found a code/script on the internet. However, as I declared earlier, I have no basic about VBA, and I am only able to change the link address and run the script/code. That's it.

    I have several considerations about this task, but I plan to solve them one by one. Maybe other considerations can proceed if this post can be solved.

    But for the time being, I need your help to:
    1) Data from "Testing Spreadsheet" Sheet1 B3:C5 exported to the "Source.xlsm" Sheet1 B3:C5
    2) Data from "Testing Spreadsheet" Sheet2 E3:F6 exported to the "Source.xlsm" Sheet2 E3:F6
    3) Then, if we refresh or update the "Source.xlsm", the data can be replaced on the same cells.

    I have uploaded an excel file, namely the "Source.xlsm", here. The Google Sheet link and VBA code in that file.

    I appreciate any help you can provide. Thank you.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Export Specific Cells/Data from Google Sheet to Excel Desktop using VBA

    I haven't done this but look at this Youtube video using PowerQuery

  3. #3
    Registered User
    Join Date
    09-20-2016
    Location
    Malaysia
    MS-Off Ver
    365
    Posts
    18
    Thank you for the reply sir. I realized that PowerQuery is come from "Get Data" tool. Ya, it is quite nice but this method will copy all data in the table. My objective is to copy & paste the specific cells from the spreadsheet to the specific cells in the excel, and not disturbing any existing cells in the excel sheet.

  4. #4
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Export Specific Cells/Data from Google Sheet to Excel Desktop using VBA

    It maybe possible to use Selenium to get specific cells, however, it is very complicated and less reliable. I would just get workbook, transfer cells and close workbook.

  5. #5
    Registered User
    Join Date
    09-20-2016
    Location
    Malaysia
    MS-Off Ver
    365
    Posts
    18

    Re: Export Specific Cells/Data from Google Sheet to Excel Desktop using VBA

    I see. Ya, advanced coding or programming will make me a headache,
    Thank you again sir for reply.

+ 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. Export to Desktop with some cells as values
    By DxoMark in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-26-2020, 09:18 AM
  2. Google Sheet: Get the range of the specific cells and send it to email as an PDF file
    By cjvdg in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 11-09-2020, 10:13 PM
  3. Google Sheet - Export to Excel Automatically
    By jerryr0125 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 12-16-2019, 04:35 AM
  4. [SOLVED] Multiple Sheet Export to PDF, one sheet needs specific range based lastrow of data
    By xlyfe in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-25-2018, 07:39 PM
  5. Export Specific Data from existing excel spreadsheet into new Excel Sheet
    By Annie1065 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-24-2012, 03:34 AM
  6. Desktop Shortcut to Specific Sheet in Excel
    By joe_ssi in forum Excel General
    Replies: 1
    Last Post: 08-11-2006, 01:15 PM
  7. [SOLVED] Google desktop search and Excel password prompt
    By Bob Flanagan in forum Excel General
    Replies: 0
    Last Post: 01-05-2005, 05:06 PM

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