| View previous topic :: View next topic |
| Author |
Message |
Ludek General User

Joined: 29 Jun 2007 Posts: 6
|
Posted: Wed Mar 05, 2008 12:02 am Post subject: Scripting framework error - newbie struggling with deletion |
|
|
Hello everyone,
I'm just starting to play with macros in OO and during my play I recorded a macro in Calc, changed it's name to something more meaningful, later found it didn't do quite what I wanted and deleted it. Now I'm left with an error message:
'Scripting framework error occurred whilst running the basic script vnd.sun.star.script:Standard:PC_OpenSheet? Message: BasicProviderImpl::getscript: no script: '
I understand what it's saying but I can't stop it from saying it!
What do I do now...
Thanks taking the time to read, regards,
Ludek |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8979 Location: Lexinton, Kentucky, USA
|
Posted: Wed Mar 05, 2008 7:16 am Post subject: |
|
|
You probably deleted the subroutine code but not the Module it was in. Been there, done that. Do Tools > Macros > Organize > Basic now use the Organizer button, find the Module and delete it.
At the same location (Basic) you also see the Assign button - if you previously assigned the macro to some Event or keyboard combo then use this button to delete the assignment. |
|
| Back to top |
|
 |
Ludek General User

Joined: 29 Jun 2007 Posts: 6
|
Posted: Wed Mar 05, 2008 10:30 am Post subject: |
|
|
Hi JohnV and thanks for the reply,
I can see the module the script is supposed to be in but when I go to 'Organize' the delete option is greyed out.
I've checked the assigns to make sure there's nothing there and that's all clear.
Best wishes,
Ludek |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8979 Location: Lexinton, Kentucky, USA
|
Posted: Wed Mar 05, 2008 2:00 pm Post subject: |
|
|
That's strange but I think you must be in the wrong place so let's try again.
Do Tools > Macros > Organize Macros > OOo Basic at this location there is an Organizer button. When you click it you see a Modules tab. This is where you should be able to delete it. |
|
| Back to top |
|
 |
Ludek General User

Joined: 29 Jun 2007 Posts: 6
|
Posted: Thu Mar 06, 2008 12:29 pm Post subject: |
|
|
Hi John,
Nope, I was in the right place.
If I'm reading the error message correctly it's saying I have a problem in a module called 'Standard' because it can't find a macro called PC_Open which should be activated by the sheet opening.
When I go into 'Organize' the only modules that let me delete them have macros in them. When I click on the 'Standard' module (which no longer has anything in it) the Delete button greys out.
This is the module where PC_Open was before it was deleted but the program doesn't seem to recognise that.
Should I just reinstall?
Thanks again,
Ludek |
|
| Back to top |
|
 |
|