+ Reply to Thread
Results 1 to 4 of 4

VBA Declare Variables with array

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    48

    VBA Declare Variables with array

    hi

    NOTE: My vba knowledge is basic I am getting there slowly.
    I feel stupid asking but this code will not work and I get compile error constant expression required array.

    Please Login or Register  to view this content.
    Thanks.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Declare Variables with array

    Just to give you some direction

    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA Declare Variables with array

    I'm not sure what you're shooting for. This declares a string array that has 10 elements.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    01-02-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: VBA Declare Variables with array

    Thanks got it working.

    Please Login or Register  to view this content.

+ 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] How do you declare several variables?
    By bananajelly in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-22-2014, 05:43 PM
  2. How do you declare several variables?
    By bananajelly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2014, 11:55 AM
  3. [SOLVED] How to declare variables
    By nav505 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2013, 01:25 PM
  4. Why declare variables
    By tryer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2009, 12:03 PM
  5. [SOLVED] declare Variables
    By Lee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2005, 05:05 PM

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