Results 1 to 9 of 9

Passing a variable between modules in VBA

Threaded View

MikeFranz123 Passing a variable between... 12-03-2013, 07:09 AM
TMS Re: Passing a variable... 12-03-2013, 07:13 AM
ragulduy Re: Passing a variable... 12-03-2013, 07:14 AM
MikeFranz123 Re: Passing a variable... 12-03-2013, 07:25 AM
Olly Re: Passing a variable... 12-03-2013, 07:32 AM
ragulduy Re: Passing a variable... 12-03-2013, 07:32 AM
jindon Re: Passing a variable... 12-03-2013, 07:50 AM
MikeFranz123 Re: Passing a variable... 12-03-2013, 07:55 AM
TMS Re: Passing a variable... 12-03-2013, 08:20 AM
  1. #4
    Registered User
    Join Date
    03-09-2012
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Passing a variable between modules in VBA

    I've attached a sample workbook here.

    As you will see, when you run Module1, even when passing between the two subs, the variables are kept. When it switches to another module, however, the variables are lost.

    Any help would be greatly appreciated!

    Thanks again

    Mike
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA - Simple example for passing a variable between modules
    By Ryanside in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2012, 06:33 AM
  2. Passing an array into multiple Modules
    By jo15765 in forum Excel General
    Replies: 2
    Last Post: 11-13-2011, 02:18 AM
  3. Passing parameters to class modules
    By Mats Samson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2011, 03:44 AM
  4. Passing between modules
    By mcinnes01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2011, 05:31 AM
  5. Passing Variables between Modules
    By wombat7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-04-2007, 01:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1