Automatically converting Excel Files to Google Sheets - excel

I have a google account that uses the save emails and attachments add-on.
https://chrome.google.com/webstore/detail/save-emails-and-attachmen/nflmnfjphdbeagnilbihcodcophecebc?hl=en
The email account only receives excel sheets as attachments, and those are saved to a specific folder automatically.
Is it possible to have those sheets converted automatically to google sheets upon save (or after save). Currently, I have to open the file with google sheets to convert it.
I have tried setting the folder to Convert uploaded files to Google Docs editor format, but that doesn't work for this.
Any suggestions would be greatly appreciated.
Eric

if you're wishing to do this with the Drive API, then you can do so using the examples given in Upload Files, see the section headed Importing to Google Docs types. Essentially, by setting the source file MIME type to application/vnd.openxmlformats-officedocument.spreadsheetml.sheet and that of the new file to application/vnd.google-apps.spreadsheet, this indicates that the conversion is required on upload.

Related

Easy way, without the user having Excel installed, to use xlsx (with hyperlinks) online?

I'm using one parent folder that includes:
one xlxs file that has a column of hyperlinks.
one sub-directory that contains photos.
The hyperlinks open the photos just fine (locally) but after uploading the exact directory structure to dropbox or google, either the hyperlinks break, or the xlsx formatting takes a serious hit. The aforementioned behavior is experienced using the same PC and software that created the dir and file.
Works locally, but online, opens the xlsx and breaks the hyperlinks (dropbox) -or-, in the case of google, screws-up the xlsx formatting; yet the hyperlinks work. I was hoping for a solution that would not involve scripting/coding; to just upload and it works.

Is my vba code lost when saving to google drive?

I have uploaded an xlsm file to google drive. When opening it uses google sheets, and when downloading it converts it to xlsx (no vba modules). Is there another way to get my code back? (The original file on my computer is gone).
Apologies, self answer.
In Google Drive Settings there is a toggle box to 'Convert uploaded files to google docs editor format'. This was ticked and so I lost the code as soon as I uploaded.
I have since tested it and without that tickbox ticked, the file remains in xlsm format, even if you open it in google sheets.
Also that tickbox is not ticked by default, so you really have to put some effort in to lose all of your code like I did.

Importing a xlsx from a url into google sheets

In GoogleDocs, I'm trying to use an import function (e.g. =importdata) to extract data from or open an online XLSX file. An example would be the url below:
http://www.sportsbookreviewsonline.com/scoresoddsarchives/nba/nba%20odds%202015-16.xlsx
Ideally I want this to automatically upload this file everytime I open google sheets. The data comes back corrupted however it does mention a .xml location.

Any way te read an excel file from a Google Sheet?

in my organization we work with Google Apps but we have one file that we need to maintain in Excel due to its complexity. All my other spreadsheets are Google Sheets and a lot of them need to get data from that excel file. So my question is: is there a way either trough google scripts or excel publishing to get data from an excel file in Google Drive to a Google Sheet?
I know all about the other direction, Google to Excel, but Excel to Google is proven more complicated. Any help would be much appreciated.
im giving you an algorithmic-level answer without code because you also have none.
with apps script you can import the xls to drive as a new spreadsheet at regular intervals. then, copy its contents to a fixed spreadsheet (replacing previous content).
other spreadsheets can read from that fixed sprradaheet with scripts/importrange etc.

Create an xls from a xlt

Ok I have a excel template file which contains various headers, images etc.
I need to populate a number of excel files based on this template file using Microsoft.Office.Interop.Excel
I have seen plenty of examples online how to create and modify existing excel files (both xlt and xls) however none show how to create the xls from an xlt.
The only way I can see round the problem is to open the xlt, populate the data on the workbook then save the file as an xls....
Is this the only way that this can be done?
Thanks
Instead of using xlt and xls files you can create a standard xlsx file and use unique tokens for the content you want to replace. Then you can create a new xlsx file based on your "template".
Open XML SDK 2.0 for Microsoft Office
http://www.microsoft.com/downloads/en/details.aspx?FamilyId=C6E744E5-36E9-45F5-8D8C-331DF206E0D0&displaylang=en

Resources