Hello,
I am interested in writing a OO Basic Macro that will recalculate spreadsheet. How can I do this??
Thanks in advance,
Saleem
[Solved] Basic Macro to Recalculate Spreadsheet
[Solved] Basic Macro to Recalculate Spreadsheet
Last edited by saleem145 on Sun Jul 15, 2012 1:55 pm, edited 2 times in total.
OpenOffice 3.4.0
Mac OS X 10.5.8
Mac OS X 10.5.8
- Charlie Young
- Volunteer
- Posts: 1559
- Joined: Fri May 14, 2010 1:07 am
Re: Basic Macro to Recalculate Spreadsheet
saleem145 wrote:Hello,
I am interested in writing a OO Basic Macro that will recalculate spreadsheet. How can I do this??
Thanks in advance,
Saleem
Code: Select all
Sub Calculate()
ThisComponent.calculateAll()
End Sub
Apache OpenOffice 4.1.1
Windows XP
Windows XP
Re: Basic Macro to Recalculate Spreadsheet
You can call any command by an ordinary hyperlink or hyperlink button:
.uno:AutomaticCalculation toggles automatic calculation (menu:Tools>Content>Auto Calculation)
.uno:Calculate calculates all "dirty cells" depending on modified cells when auto calc is off (key F9)
.uno:CalculateHard calculates the whole document (key Ctrl+Shift+F9)
.uno:AutomaticCalculation toggles automatic calculation (menu:Tools>Content>Auto Calculation)
.uno:Calculate calculates all "dirty cells" depending on modified cells when auto calc is off (key F9)
.uno:CalculateHard calculates the whole document (key Ctrl+Shift+F9)
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