Joined: Mar 22, 2010 Posts: 20 Location: Devon, England
Posted: Tue Jun 01, 2010 5:48 am Post subject: How do I assign a keystroke to a recorded macro
How do I assign a keystroke to a recorded macro?
I have recorded a simple macro and now want to assign a keystroke to it but haven't been able to work out how to do it.
Thanks,
Peter
Joined: Jun 21, 2003 Posts: 173 Location: Selmer, Tennessee
Posted: Tue Jun 01, 2010 7:18 am Post subject:
You need to save the macro and give it a name. I assume you've already done that, and that by invoking the macro with Tools->Macros->Run you get the desired results. Let's call the macro "BigMac" for the purpose of this discussion.
Go to Tools->Customize... and select the Keyboard tab if it's not already selected. The resulting window is divided horizontally into two sections. Make sure the correct component is selected with the radio buttons on the right side, i.e., NeoOffice or Writer. Go to the bottom section, called Functions--------
In that section, scroll the category panel down to NeoOffice Macros and click on the disclosure triangle to the left of "NeoOffice Macros". Your macro probably got stored in the "user" folder, so click its disclosure triangle. Another folder named "Standard" will be revealed. Click on its disclosure triangle, and you'll see "Module1". Click on Module1. You should see "Main" and "BigMac" displayed under the Function column (the middle column.) Select "BigMac".
Now go the upper part of the window labeled Shortcut keys--------
Select an open key (one that has no text to the right of it.) Click on it. Go to the right side of the window and click the "Modify" button. Go to the bottom of the window and click "OK".
Use and enjoy. _________________ Jim Plante
MacOS X 10.6.34, MacBook 2GHz C2Duo, 2gb, Neo 3.1.1 p 1
Paste it here and someone might be able to help you - depends what it's meant to be doing (so tell us what it's meant to be doing as well ). Also, what version of NeoOffice/OpenOffice it's written in/for.
Joined: Jun 21, 2003 Posts: 173 Location: Selmer, Tennessee
Posted: Wed Jun 02, 2010 11:09 am Post subject:
What now? Why, fix the macro, of course. You said that you had recorded it. Did you make any changes to it manually (i.e., through the macro editor?)
I warn you fair and square: OpenOffice's BASIC has a steep learning curve. If you're doing anything complex with it, you'll rapidly exhaust the resources of this support base. What are you trying to get it to do? _________________ Jim Plante
MacOS X 10.6.34, MacBook 2GHz C2Duo, 2gb, Neo 3.1.1 p 1
Joined: Jun 16, 2003 Posts: 10950 Location: California, USA
Posted: Wed Jun 02, 2010 3:59 pm Post subject:
yoxi wrote:
Paste it here and someone might be able to help you - depends what it's meant to be doing (so tell us what it's meant to be doing as well ). Also, what version of NeoOffice/OpenOffice it's written in/for.
Please don't post your macro. While we provide support for NeoOffice in these forums, we do not provide macro writing or debugging services at this site.
The reason that we do not provide macro writing or debugging services is because macros are custom code that you have written and, since it is your code, it is your responsibility to debug and fix it.
Joined: Mar 22, 2010 Posts: 20 Location: Devon, England
Posted: Thu Jun 03, 2010 12:13 am Post subject:
I won't post the macro, it's not that important.
Basically I want to automatically draw a line across a page in the latest version of Neo using tabs as I did with Word (spit!). I can do it manually so thought a macro would be easy to set up using the recorder. Not so apparently and I don't have the time to learn about macro programming!?!
It's something I'd like to do but it won't ruin my life if I can't.
Cheers,
Peter
Sorry if I crossed a line, there - yes, the macro recorder doesn't record everything you'd want or expect it to, especially anything involving dialogues - I've recorded long actions working through screen dialogues, only to find there's nothing at all in the macro file except "open the first dialogue".
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 You cannot attach files in this forum You cannot download files in this forum