PC Review


Reply
Thread Tools Rate Thread

How do I pass a value from an event back to my VBA Programming enviornment.

 
 
Mac Lingo
Guest
Posts: n/a
 
      21st Sep 2008
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


 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      21st Sep 2008
hi
post your event code and your ordinary vba code.

Regards
FSt1
p.s. events are not code. events are what triggers the ordinary vba code to
run.

"Mac Lingo" 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
>
>
>

 
Reply With Quote
 
Duncan
Guest
Posts: n/a
 
      21st Sep 2008
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pass processing back to asp.dll Eric Microsoft ASP .NET 1 19th Jan 2008 08:14 AM
VBA Programming Enviornment & Intellipoint Steve Welch Microsoft Excel Programming 4 10th Dec 2007 03:38 PM
pass datatable in event or grab from property or pass in function? Raymond Lewallen Microsoft VB .NET 7 7th Jul 2004 10:59 PM
pass back data Hei Microsoft VB .NET 3 24th Dec 2003 05:04 PM
Re: Moving back to Microsoft Outlook '97 programming Ken Slovak - [MVP - Outlook] Microsoft Outlook VBA Programming 0 3rd Jul 2003 02:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:18 PM.