OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Deleted macros returning

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
PrivatePIckle
Newbie
Newbie


Joined: 11 Jun 2006
Posts: 2

PostPosted: Sun Jun 11, 2006 10:01 am    Post subject: Deleted macros returning Reply with quote

Hello,

I am new to OO.o and I have never really used macros except using the record function to automate a repetitive task in excel. I have a simple time sheet form that my company created that had a macro that was not used in it so I deleted it (in excel) so the "enable" "disable" dialog wouldn't appear when other people use the form.

I now have switched to OO.o on 2 of my 3 computers and when I open the document I get the warning that there are macros and if I want to enable or disable them. I went to tools-macros-organize macros-openoffice.org basic and found the modules listed for that form and deleted the macros also clicked on organizer and deleted the modules that had the macros. I save and close the form and open it again and the macros are back. The also show up in excel but I can delete them in excel and the stay gone until I open the form in OO.o. This is the latest version of OO.o installed on a new laptop just a couple of days ago.

Thank you for any assistance.

Oh, and when I go to OO.o basic to delete the macros they are listed under standard the modules are named 'sheet 3' and 'thisworkbook' and the macros have the same name. I click to edit them and this is what I see.

Rem Attribute VBA_ModuleType=VBADocumentModule
Sub ThisWorkbook
Rem
End Sub

Rem Attribute VBA_ModuleType=VBADocumentModule
Sub Sheet3
Rem
End Sub
Back to top
View user's profile Send private message
noranthon
Super User
Super User


Joined: 07 Jul 2005
Posts: 3318

PostPosted: Sun Jun 11, 2006 8:12 pm    Post subject: Reply with quote

I cannot get the same result. I've just used the macros organiser to delete a module in a Test.ods, saved it as Test2, closed and reopened it, then used the macros editor to remove a dialogs module I had forgotten, saved, closed and reopened and neither module is there.

If you are sure you are following the correct procedure, try saving the amended document under another name and reopening it. I see no reason why that should make a difference but, also, I see no reason why you should have the problem described.

I take it that the macros are contained in the document' library, not the user "standard" library. If the latter, save the library after deleting the modules. That seems to happen automatically on my system after the organiser is closed but saving the changes will make that certain.

If you still have no luck, select each macro and click the edit button, then right-click on each module tab and select "Delete". Save the document immediately after deleting the modules.
_________________
search forum by month
Back to top
View user's profile Send private message
PrivatePIckle
Newbie
Newbie


Joined: 11 Jun 2006
Posts: 2

PostPosted: Sun Jun 11, 2006 11:24 pm    Post subject: Reply with quote

I tried deleting the modules as you described at the end of your post and renaming the document and neither worked.

I wasn't clear in my post that I was saving as .xls instead of .ods because I have not yet been able to get any one else to try OO.o so I saved as .ods closed, opened then deleted the modules and saved the document. When I reopen the macros do not return so I then saved as .xls again replacing the original form and it is working again. No clue why this worked but this is the extent of my knowledge.

Thank you for the help.
Back to top
View user's profile Send private message
swingkyd
OOo Advocate
OOo Advocate


Joined: 15 Sep 2004
Posts: 479

PostPosted: Mon Jun 12, 2006 11:16 am    Post subject: Reply with quote

Could the culprit be the settings in:
Code:
Tools -> Options

and under:
Code:
Load/Save -> VBA Properties: Save original Basic code again


As the help reads:
Quote:
Save original Basic code again
Specifies that the original Microsoft Basic code contained in the document is held in a special internal memory for as long as the document remains loaded in OpenOffice.org. When saving the document in Microsoft format the Microsoft Basic is saved again with it in an unchanged form.
Back to top
View user's profile Send private message
Rod Carroll
General User
General User


Joined: 23 Apr 2009
Posts: 10
Location: Columbus, OH

PostPosted: Tue May 05, 2009 7:35 am    Post subject: Reply with quote

Thanks,
Changing the setting seems to have helped me with OO 3.0.1
_________________
Rod
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group