Hello
1. I want to run a macro when the file is open (in Calc). How can I do this ? (Workbook_Open in excel)
2. If the macro security is set to high how can I close the file after it is open (if it is not possible do not open the file; or display an empty tab).
Thanks
Florin
[Solved] Start a macro when file is open
[Solved] Start a macro when file is open
Last edited by Hagar Delest on Thu Oct 14, 2010 12:49 pm, edited 1 time in total.
Reason: tagged [Solved].
Reason: tagged [Solved].
OpenOffice.org 3.2
Windows XP Professional
Windows XP Professional
Re: Start a macro when file is open
One Calc file or every Calc file?
Re: Start a macro when file is open
Here is an example.1. I want to run a macro when the file is open (in Calc). How can I do this ?
This is a minimal macro:
Code: Select all
Sub Run_at_open
Print "This macro runs when this file opened"
End SubTibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.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: LO3.3.0-25.8.5.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: Start a macro when file is open
Just one Calc file.
Thank you all.
Thank you all.
OpenOffice.org 3.2
Windows XP Professional
Windows XP Professional
Re: Start a macro when file is open
Was this enough to solve your problem?