Terry wrote:
Laurent Duperval wrote:
Hi,
I recorded a macro to change font colors for two of my styles. The
idea is to allow me to create a handbook, and by running the macro,
make the answers appear or disappear.
My problem is that when I run the macro, OO asks me to input values
in the dialog box. I expected that the values would be input for me
automatically.
For example, when I recorded, I changed a font from Black to White.
When I run it, the dialog comes up, and OO waits for me to provide
the font color.
Can I automate this completely? This is the sample code that was
recorded:
<snip
When you use a procedure involving the use of a dialogue, the present
macro recorder only records your use of the procedure. It records no
details entered in the dialogue.
Your code needs to be entered in StarBasic. Perhaps someone on the
list can provide you with code. I will have a look at it as soon as I
can; possibly, tomorrow.
Macro code travels badly by email, so I have uploaded a text document
containing a model macro to reverse font colours:
http://www.mytempdir.com/992950
--
If you're seeking, check out http://www.rci.org.au
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]