+ Reply to Thread
Results 1 to 13 of 13

Empty Global Array

Hybrid View

  1. #1
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Empty Global Array

    That's why you put the initialization inside a procedure. Run Init first.

    Sub Init()
      Pattern(1) = "-*"
      Pattern(2) = "whatever"
      ' ...
    End Sub
    Entia non sunt multiplicanda sine necessitate

  2. #2
    Registered User
    Join Date
    12-13-2012
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Empty Global Array

    Quote Originally Posted by shg View Post
    That's why you put the initialization inside a procedure. Run Init first.

    Sub Init()
      Pattern(1) = "-*"
      Pattern(2) = "whatever"
      ' ...
    End Sub
    Ok, cool. So, I can put the initialization inside a separate sub and then call that sub within another sub.

+ 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. Global Array
    By peternorth in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2013, 10:12 AM
  2. global 2 column array
    By oscar07202 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-19-2012, 01:58 PM
  3. [SOLVED] Global Array not working
    By Pergo in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-30-2012, 10:25 AM
  4. How to use a global array correctly.
    By Brad4444 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-08-2011, 03:01 PM
  5. Global Array - How To Size
    By DCSwearingen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2007, 12:13 PM
  6. [SOLVED] public or global array
    By shishi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2006, 05:35 PM
  7. [SOLVED] Global array declare
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2005, 07:05 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