Macrosuri în OpenOffice Calc - un tutorial
Macro-urile sunt foarte populare când vine vorba de automatizarea secvențelor de programe. În acest articol veți învăța cum să creați macro-uri în foaia de calcul OpenOffice Calc.
OpenOffice Calc: înregistratorul macro
„OpenOffice” este o alternativă gratuită și egală cu Microsoft Office. Similar cu Excel, puteți crea, de asemenea, macrocomenzi OpenOffice Calc în foaia de calcul. Puteți înregistra macrocomenzi sau le puteți programa. Pentru aceștia din urmă, aveți nevoie de o cunoaștere de bază a limbajului de programare de bază OpenOffice.org.
- Începeți înregistrarea: Pentru a începe înregistrarea unei macro, accesați „Instrumente” -> „Macros” -> „Înregistrare macro” din bara de meniu. Programul vă înregistrează acum activitățile în fundal. Apoi, faceți pasul pe care doriți să îl automatizați. De exemplu, puteți crea un grafic cu valorile goale. Dacă introduceți valori în tabel într-un pas ulterior și rulați macrocomanda, aceasta va fi completată automat. După ce ați terminat înregistrarea, faceți clic pe „Stop înregistrare”. Apoi, trebuie doar să dai un nume macro și să îl salvezi.
- Execută macro: aveți nevoie de „Java Runtime Environment” pentru a executa o macrocomandă. Dacă acest lucru nu este instalat pe computer, veți primi un mesaj de la OpenOffice. Din motive de securitate, asigurați-vă că versiunea curentă este instalată. Pentru a rula o macro înregistrată, accesați „Instrumente” -> „Macros” -> „Rulați macro ...” din bara de meniu.
- Adăugați simbol: Dacă doriți să accesați macro-ul dvs. direct folosind un simbol, faceți clic pe o săgeată gri din bara de instrumente și apoi pe „Personalizați bara de instrumente ...”. Cu „Adăugare ...” puteți plasa noi elemente pe bara de instrumente. Ultima intrare din câmpul „Area” conține macrocomenzi. Utilizați săgețile pentru a determina poziția macro-ului.
OpenOffice Calc: macro-program
Dacă sunteți familiarizat cu programarea, puteți crea, de asemenea, o macro. OpenOffice are propriul său mediu de dezvoltare. Instrucțiuni detaliate pot fi găsite pe pagina wiki a producătorului.
- Structura de bază: puteți vedea cum arată structura de bază dintr-o macro înregistrată. Pentru a face acest lucru, accesați „Instrumente” -> „Macros” -> „Gestionare macro-uri” -> „OpenOffice Basic ...” din bara de meniuri. Selectați macrocomanda dvs. și faceți clic pe „Editați ...”. Acum puteți scrie propriul cod sursă în mediul de dezvoltare (IDE).
Un alt sfat practic vă arată cum să protejați un document OpenOffice cu o parolă.