Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index

On 10/22/2013 01:35 AM, Heena Gupta wrote:
Hi guys,

  When i run the MS Excel macro in libre office, it runs correctly but shows
the output while clicking on the cell on which output comes.

Option VBASupport 1
Sub Button1_Click()
Dim a As Integer
Dim b As Integer
Dim c As Integer
a = ActiveCell.Text
b = ActiveCell.Text
c = a + b
ActiveCell.FormulaR1C1 = c
End Sub

Thanks & Regards,
  Heena Gupta

Are you saying that the screen updates while your macro runs?

To quote Bernard Marcelly: (see

Freezing screen is done with method lockControllers() of the document's Model.
Freezing recalculations is done with method addActionLock() of the document.
With Basic it's simple:

|myDoc = ThisComponent
' --- modify your cells here ---

If you are asking what I think you are asking, you would only lock and unlock the controller and not use the action lock.

Andrew Pitonyak
My Macro Document:

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.