[Solved] VBA macro to toolbar button
[Solved] VBA macro to toolbar button
Hey!
I draw the short straw at work and got tasked with converting all our MS Word templates to OO.
All macros seems to work when the template is opened in OO but in MS Word we have a toolbar with the macros assigned to buttons in the toolbar.
My question is: Is there a way to add macros written in VBA to a toolbar in OO?
thanks!
I draw the short straw at work and got tasked with converting all our MS Word templates to OO.
All macros seems to work when the template is opened in OO but in MS Word we have a toolbar with the macros assigned to buttons in the toolbar.
My question is: Is there a way to add macros written in VBA to a toolbar in OO?
thanks!
Last edited by gust on Mon Sep 06, 2010 11:54 am, edited 1 time in total.
OpenOffice 3.2
Windows 7
Windows 7
Re: VBA macro to toolbar button
You can do that with Tools - Customize.
If your problem has been solved, please edit the first post in this thread and add [Solved] to the title bar.
If your problem has been solved, please edit the first post in this thread and add [Solved] to the title bar.
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
Re: VBA macro to toolbar button
Sorry its really not that simple, When OO imports the VBA macros it creates a Sub around all VBA subs and then comments them out so you cant choose one of the VBA subs.
OpenOffice 3.2
Windows 7
Windows 7
-
- Volunteer
- Posts: 578
- Joined: Mon Oct 08, 2007 1:31 am
Re: VBA macro to toolbar button
VBA is not supported in OOo (in standard builds, at least), is it? Thus, there’s no reason of adding buttons to the toolbar anyway.
AOO 4.2.0 (of 2015) / LO 7.x / Win 7 / openSUSE Linux Leap 15.4 (64-bit)
Re: VBA macro to toolbar button
Ok, that sucks, then i have to convert them manuallyesperantisto wrote:VBA is not supported in OOo (in standard builds, at least), is it? Thus, there’s no reason of adding buttons to the toolbar anyway.
OpenOffice 3.2
Windows 7
Windows 7
Re: VBA macro to toolbar button
You said that the macros seemed to work? I was a bit surprised about that. Maybe you should try go-oo, that has better support for Excel VBA macros.
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
Re: VBA macro to toolbar button
yeah i thought so but upon some more research it seems like the styles already are in the template and not added by the macros in the templatefloris v wrote:You said that the macros seemed to work? I was a bit surprised about that. Maybe you should try go-oo, that has better support for Excel VBA macros.
OpenOffice 3.2
Windows 7
Windows 7
Re: VBA macro to toolbar button
I see, then you have some hard work ahead.
OpenOffice 4.1.11 on Ubuntu; LibreOffice 6.4 on Linux Mint, LibreOffice 7.6.2.1 on Ubuntu
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
Re: VBA macro to toolbar button
don't know about hard but certainly boringfloris v wrote:I see, then you have some hard work ahead.
OpenOffice 3.2
Windows 7
Windows 7
-
- Volunteer
- Posts: 578
- Joined: Mon Oct 08, 2007 1:31 am
Re: VBA macro to toolbar button
The matter is, there’s no automatic or semi-automatic conversion of VBA into SB, you have to re-write the code. Well, good luck!
AOO 4.2.0 (of 2015) / LO 7.x / Win 7 / openSUSE Linux Leap 15.4 (64-bit)
Re: [Solved] VBA macro to toolbar button
I found a site that purports to do some automatic conversion of VBA to OpenOffice BASIC. How good or bad it is I cannot say but you could try it out:
http://www.business-spreadsheets.com/vba2oo.asp
http://www.business-spreadsheets.com/vba2oo.asp
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS