

Select the Standard entry below the document node and click New.Īpache OpenOffice shows a small dialog that suggests to create a new module named Module1.Scroll to the document node FirstStepsBasic.odt in the Macro from list.
Openoffice basic macros code#
Our next step will create a new module for source code in the Standard library of our FirstStepsBasic.odt document. The libraries contain modules with the actual Basic source code. Other libraries have to be loaded before they can be used. The Standard libraries of the application and for all open documents are always loaded. The OpenOffice Macros container contains the libraries that come with a default Apache OpenOffice installation – most of them are AutoPilots. Both containers, My Macros and FirstStepsBasic.odt, contain a library named Standard. Therefore, the My Macros, OpenOffice Macros and FirstStepsBasic.odt containers are displayed in the illustration above. =IF(OR(ISBLANK(A3) ISBLANK(B3) ISBLANK(C3) isblank(f3) isblank(h3)) -1 MYPOINTS(a3 b3 c3 f3 h3))Īnd then just write the MYPOINTS basic function to do the rest of the work.The illustration above shows that the document FirstStepsBasic.odt is the only document loaded. I guess I could just write something tacky/hacky like this: Which doesn't do all that Ireally need, I'd like to just use a Basic Macro to do the heavy lifting.

Openoffice basic macros free#
Can be downloaded free online for school students or. But here is a macro, which uses the sometimes handy string reverse function (also included), to operate on the current selection. WPS Office Online free open office suite, alternative to Microsoft / MS word, excel, powerpoint etc. The line break character in a cell is ascii 10, and one could probably construct a cell formula to do the job. =IF(OR(ISBLANK(元7) ISBLANK(E37)) 0 IF(E37=元7 4 IF(E37>元7 6 2)))+IF(ISBLANK(F37) 0 F37) My plan is to get a macro to automate the SHIFT+UP key, then pressing the delete key.

So instead of something convoluted like this: VBA (Visual Basic for Applications) is supported through import and export functions I am only moderately literate in computer lingo This chapter highlights a few key features of Writer (Thanks to Brian Barker from the LibreOffice Users list for the solution 1 Importing other Formats 41 4 1 Importing other Formats 41 4. It seems so limiting that when you have a reasonably nice way to do a macro, but can't actually use cells the same way you can from the spreadsheetįunctions directly. It's a shame there's no easier way inside a basic macro to tell is the value of the cell passed into the function is blank, 0, true, false, etc without jumping So instead of having =MyPoints(A2,B2,C2, E2, G2) replicated down the sheet for each match, I'd just loop through the entire spreadsheet inside one function. Thinking about it more, it might make more sense to just expand the function so that it loops over all the fields in the sheet, looking for data and then posting the results back asįound. But I'm not sure this is going to work for me because I need to use this formula for each and every game the teams play over a season. A basic macro would be much simpler to deal with. currently I have a monster in-cell function using 'if(isblank(C3).) which gets crazy hard to keep track of when I'm looking at five columns. So I want to have a function which does all this. I guess I could just score a forfeit as a -1 score, but it's simpler to have a column explicity defined. It gets more complicated since I also have to take into account Coed status and forfeits. But once I have to scores, I can them go and compute the real points to be assigned to a team. So if I put in a 2 for my team's score, but the other team's score is still blank (empty, null, whatever) then the score is zero. I don't want to assign a score to a team until I have both the team's score and a score entered for the opponent. So without opening up a new sheet and trying to figure out the location of the cell being passed into the sheet, how do I do this?Īnd just to explain, I'm trying to score soccer matches. macros then you can buy Microsoft Office 365 for 70 at com or use Open Office If you are looking for something to work with X360. So then I tried to see if I could use kingfisher's suggestions to access cell properties, but I'm not sure I can do this, because as I have been reading, the arguements passed into a basic macro function are just the values of the referenced field, not the address of the field itself. Upgrading if need be since I'll be getting a new computer one of these days.įunction CellIsBlank(X As Object) As BooleanĬellIsBlank = (X.Type = .CellContentType.EMPTY) I'm running this inside a Calc spreadsheet from OpenOffice 3.1.1 on Linux RHEL 5.7 32bit, if that makes a difference. Thank you for your quick reply, but I just tried out the =CellIsEmpty(C22) and all I get back is a "False" result and an error popup which says:
