[Solved] IDE question: running a macro
Posted: Tue Mar 25, 2008 3:07 am
Running under Windows XP
Version OOo 2.3
I have this very simple code:
When my cursor is positioned as in the above, and I click the green button to run basic, the first macro "HelloWorld" executes. I can run the "HelloAgain" macro... but only by switching to the spreadsheet and going through all the menu: Tools -> Macro etc.
I want to be able to execute a macro of my choosing from the IDE.
In Excel, using VBA, the macro to execute depends on where the cursor is in the listing.
This shouldn't be so hard!
Keith
Version OOo 2.3
I have this very simple code:
Code: Select all
Sub HelloWorld
Print "Hello, world."
End Sub
Sub HelloAgain
Dim s As String
rem cursor is positioned here
s = HelloWorldString()
MsgBox s
End Sub
Function HelloWorldString() As String
HelloWorldString = "Hello, again, World"
End Function
I want to be able to execute a macro of my choosing from the IDE.
In Excel, using VBA, the macro to execute depends on where the cursor is in the listing.
This shouldn't be so hard!
Keith