PC Review


Reply
Thread Tools Rate Thread

Calling a variable from one subroutine to another

 
 
ucanalways@gmail.com
Guest
Posts: n/a
 
      10th Nov 2007
I have a counter "i" in subroutine 1. How can I use this counter in
another subroutine? Is this possible? Please let me know. Thanks

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      10th Nov 2007
I do it this way

Call NewSub(i)

Sub NewSub(i as long)

end sub

--
HTH,
Barb Reinhardt



"(E-Mail Removed)" wrote:

> I have a counter "i" in subroutine 1. How can I use this counter in
> another subroutine? Is this possible? Please let me know. Thanks
>
>

 
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
Calling a subroutine - how to? Roger on Excel Microsoft Excel Programming 4 8th Dec 2009 03:59 AM
Call a subroutine using variable subroutine name dhstein Microsoft Excel Misc 3 26th Jul 2009 08:28 PM
Calling a Subroutine Sash Microsoft Access VBA Modules 9 18th Mar 2008 04:36 PM
Calling a DLL subroutine =?Utf-8?B?TWFyaWFubmU=?= Microsoft VB .NET 2 15th Oct 2004 12:15 PM
Calling a subroutine gives object variable not set Bill Microsoft Access VBA Modules 6 2nd Aug 2004 09:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:42 PM.