![]() 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: ' 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. Use Microsoft Excel to open AutoOpen.xls and then view the Visual Basic modules. ![]() 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 |