On 21 Sep, 03:35, "Mac Lingo" <M...@Lingos.US> wrote:
> And can involk events, and they return the right variables while the event
> is "running".
>
> But I can't figure out how to return a variable an event to my ordinary VBA
> code.
> It should be so obvious (but it isn't to me).
>
> Tnx,
> Mac
If I understand correctly you are putting values in variables within
the event procedure but they aren't there in other procedures?
Go to the Declarations area and dimension the variables you need there
(eg Public Banana as Single). Once you set values in an event
procedure they will be available in any other procedure within the
same sheet or form. You can also add a 'module', dimension the
variables there and they will be available everywhere.
If that is what you mean.
|