+ Reply to Thread
Results 1 to 2 of 2

Array Values get Reset after exiting Subroutine

  1. #1
    Registered User
    Join Date
    08-05-2015
    Location
    Kuala Lumpur
    MS-Off Ver
    Professional 2013
    Posts
    1

    Unhappy Array Values get Reset after exiting Subroutine

    Help! I declared a public single dimension array to be used in a subroutine to read & contain values. I need this array's values to carry over to another subroutine for calculations using a function. But, the array gets reset whenever i exit the subroutine. Can anyone tell me what's going wrong here?

    Here's my codes:
    Please Login or Register  to view this content.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: Array Values get Reset after exiting Subroutine

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy & Paste values on exiting Worksheet
    By coach.32 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2013, 12:21 AM
  2. Question about passing array to subroutine......
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2012, 08:19 PM
  3. Passing Object Array to a Subroutine
    By Farmer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2011, 03:09 PM
  4. Access array created in another subroutine
    By GunNam in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-23-2010, 10:35 AM
  5. [SOLVED] Excel vba - passing a 3-dimensional array to a subroutine
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-28-2006, 02:55 PM
  6. Reset an Array to start over
    By hotherps in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2005, 08:36 AM

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