On the one spreadsheet left, I added a text box with a request that the user close the workbook immediately. ![]() In the section named Default file format. While I was in AutoOpen, I cleaned it up a little by deleting the empty code modules and spreadsheets. To have Calc save documents by default in a Microsoft Excel file format, go to Tools > Options > Load/Save > General. StarDesktop = createUnoService(".Desktop")ĭoc = starDesktop.loadComponentFromURL(url, "_blank", 0, parms)ĥ. Parms(1).Value = "9,65535,1" ' Tab seps, no string delim, UTF-16 charset, begin at line 1 Parms(0).Value = "Text - txt - csv (StarCalc)" ' Name is incorrect, but required Public Sub StarOpenTsvFile(tsvPath As String)ĭim parms(1) As New .PropertyValue ![]() Add this new subroutine in the same module: An Excel 4.0 file format that saves only worksheets, chart sheets, and macro sheets. ' Perhaps we're running LibreOffice or OpenOfficeĤ. !# Here's where the existing function body goes # Don't delete the body of that function, but wrap it with this code: In my file, it was located in Module 2.ģ. (In my experience, you must use Excel for this, because LibreOffice will strip out the very macro you're working on when you save the document out as an. ![]() It’s an excellent alternative to Google’s and Microsoft’s solutions. Use Microsoft Excel to open AutoOpen.xls and then view the Visual Basic modules. You can view, edit, import, and export PDF, Word, Excel & PowerPoint documents using full features of the OpenOffice in the PC version. You can import Microsoft Excel files (XLS and XLT) which makes switching over relatively simple. With the kind assistance of Christian Lohmaier and Eduardo Moreno on the Document Foundation's LibreOffice discussion mailing list, I have managed to modify AutoOpen.xls to work with both Excel and LibreOffice (and potentially OpenOffice, though I haven't tested it).įor my company, this means we can use the export-to-Excel functionality of SAP Business One without paying double for Excel by having to buy all new licenses in order to put it on our terminal server even though everyone already uses Excel on the desktop.įor anyone else who needs to support a free office suite: I'd love to attach the file as I have it, but I'm not sure copyright issues will allow that instead, I'm going to show you how to modify the AutoOpen.xls file you already have.ġ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |