Can we use VBA to program in Calc?
-
- Posts: 20
- Joined: Mon Dec 27, 2010 8:06 pm
Can we use VBA to program in Calc?
Just trying to learn it VBA and macros and want to practice in excel, but don't have it.
OpenOffice 3.2 on Windows Vista
Re: can we use vba to program in calc?
Hi,
The VBA and OOBasic not compatible! (Maybe there are some VBA routines wich can run in OpenOffice)
In other words: The OpenOffice can run some VBA routine, but MSO can not run any OpenOffice API routine!
If you want learn and practice VBA programming: you need buy MSOffice.
The OpenOffice have API, macro-, and several programming language feature (for example: OOBasic) but they are not same as MSOffice features.
You can solve every tasks in OpenOffice, what you can achieve in MSOffice, but in another way.
Just trying to learn it VBA and macros and want to practice in excel, but don't have it.
The simple answer is: NO!can we use vba to program in calc?
The VBA and OOBasic not compatible! (Maybe there are some VBA routines wich can run in OpenOffice)
In other words: The OpenOffice can run some VBA routine, but MSO can not run any OpenOffice API routine!
If you want learn and practice VBA programming: you need buy MSOffice.
The OpenOffice have API, macro-, and several programming language feature (for example: OOBasic) but they are not same as MSOffice features.
You can solve every tasks in OpenOffice, what you can achieve in MSOffice, but in another way.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Re: can we use vba to program in calc?
Do yourself a favour and learn the most fundamental programming basics in some modern language. Then you will be able to handle VBA and you will understand why VBA (and all other Basic dialects) are dead. The remaining zombies are the macro languages of two office suites. Unfortunately OOo is one of the two.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
-
- Posts: 20
- Joined: Mon Dec 27, 2010 8:06 pm
Re: can we use vba to program in calc?
thanks for the advice. Which of the languages would you see is a good one to learn if I want to transform an open office calc sheet and is also widely used in other applications?
OpenOffice 3.2 on Windows Vista
- JohnSUN-Pensioner
- Volunteer
- Posts: 876
- Joined: Fri Jan 14, 2011 1:21 pm
- Location: Kyiv, Ukraine
Re: can we use vba to program in calc?
The office suite answer
:

I may not have a lot to give but what I got I'll give to you...
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
Apache OpenOffice 4.1.5, LibreOffice 6.4.4.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
-
- Posts: 20
- Joined: Mon Dec 27, 2010 8:06 pm
Re: can we use vba to program in calc?
Thanks JohnSun
So I think I will look to learn python, and use it in open office calc?
So I think I will look to learn python, and use it in open office calc?
OpenOffice 3.2 on Windows Vista
Re: can we use vba to program in calc?
A good starting test is "A Byte of Python"; Google should find this for you. I think OpenOffice uses v 2.6 (or 2.7) not v 3.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.5 LTS
Re: can we use vba to program in calc?
The formula language of a spreadsheet is a simplified programming language for non-programmers. If you abstain from all macros and express the whole programming logic in spreadsheet formulas, Excel will handle the file correctly. Save your spreadsheet in the old Excel file format (*.xls) and everything will work properly without macros.
As Tibor explained, you need MS Office software to learn VBA. Quite often a VBA programmer never learns to program anything else. VBA is the ring to bind them all.
If you want to use another programming language with MS Office or OpenOffice.org you first need to learn how to program anything else in that particular language. Real programming languages are not related to office suites.
Then you may use that language to talk to this program or another program. You may also control a database, a graphic program (Photoshop), a Windows system or something. The main difference is the thing you talk to once you know how to talk anything.
The OOo Basic language can be seen as a subset of VBA but you've got to say very different things in the same language. You have to send different commands that are understood by the respective target application. MS Office and OOo are very different programs. 2 cars may look the same with very similar properties even when you sit on the driver seat. But one is a Diesel, the other one is run on batteries. "Gas" means nothing to the E-car while "Ampere" refers to something different in the Diesel.
As Tibor explained, you need MS Office software to learn VBA. Quite often a VBA programmer never learns to program anything else. VBA is the ring to bind them all.
If you want to use another programming language with MS Office or OpenOffice.org you first need to learn how to program anything else in that particular language. Real programming languages are not related to office suites.
Then you may use that language to talk to this program or another program. You may also control a database, a graphic program (Photoshop), a Windows system or something. The main difference is the thing you talk to once you know how to talk anything.
The OOo Basic language can be seen as a subset of VBA but you've got to say very different things in the same language. You have to send different commands that are understood by the respective target application. MS Office and OOo are very different programs. 2 cars may look the same with very similar properties even when you sit on the driver seat. But one is a Diesel, the other one is run on batteries. "Gas" means nothing to the E-car while "Ampere" refers to something different in the Diesel.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice