Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default How do I pass a value from an event back to my VBA Programming enviornment.

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default How do I pass a value from an event back to my VBA Programming env

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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default How do I pass a value from an event back to my VBA Programmingenviornment.

On 21 Sep, 03:35, "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


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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot pass argument from control to sub and back Revolvr Excel Programming 4 September 18th 08 06:46 PM
VBA Programming Enviornment & Intellipoint Steve Welch Excel Programming 4 December 10th 07 03:38 PM
Pass control back to Excel window [email protected] Excel Worksheet Functions 1 December 29th 06 07:24 PM
Pass variable from module to userform and back [email protected] Excel Programming 0 July 20th 06 04:46 PM
Pass a variable back to the host script? mb Excel Programming 2 October 29th 05 07:02 PM


All times are GMT +1. The time now is 09:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"