Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Recorded a Macro to Import a File in Google Sheets

$
0
0

I'm able to import a file from my disk using "File Import".
I tried to do the process while recording a macro.I did "File", "Import", then chose "Upload new file" and picked something like "C:\mydir\CurrentPriceFile.csv".

While recording it seemed to work, but playback does nothing.

The macro it recorded only shows this:

/** @OnlyCurrentDoc */function ImportCurrentPricesFile() {  var spreadsheet = SpreadsheetApp.getActive();  spreadsheet.getRange('K4').activate();};

Is it not possible for it to record the "File Import"?

What alternatives do I have? I saw somewhere else that I could probably use "=importData()" but then I have to put the file on a webserver.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>