+ Reply to Thread
Results 1 to 9 of 9

See what values have stored in my array

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    See what values have stored in my array

    Hi to all

    I try to see what values has stored in my array
    I use this code

    Please Login or Register  to view this content.
    but in msgbox i get runtime error 9

    Why??
    Last edited by jeffreybrown; 03-12-2018 at 11:18 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: See the array

    An array populated from a range has 2 dimensions, try this.
    [code

    Please Login or Register  to view this content.
    PS When posting code can you please use CODE tags?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Re: See the array

    Thanks for your answer Norie and sorry for the Code Tags

    I want to fill an array from cell 1,1 to cell 1,4
    how can i do this in 1 dimension array??

    Thanks

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: See what values have stored in my array

    Do you really need a one-dimensional array?

    It is possible but it would require extra work/code.

  5. #5
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Re: See what values have stored in my array

    Yes Only one dimension array.

    I really appreciate this Norie

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: See what values have stored in my array

    How are you going to use the one-dimensional array?

  7. #7
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Re: See what values have stored in my array

    In a loop
    In the array i will store only the values of the columns....

  8. #8
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Re: See what values have stored in my array

    Finally i use this code and work OK

    Please Login or Register  to view this content.

  9. #9
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: See what values have stored in my array

    Hi !
    Please Login or Register  to view this content.
    As you can proceed the same way for an array variable …

    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 03-12-2018 at 12:55 PM.

+ 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] VBA to select all ranges stored in array at once
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-27-2017, 03:50 AM
  2. [SOLVED] Activate sheet stored in array
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2017, 08:38 AM
  3. [SOLVED] VBA to count stored array string in range
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-25-2017, 09:16 AM
  4. [SOLVED] EVALUATE an R1C1 formula currently stored in an array
    By JBeaucaire in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-07-2016, 11:01 PM
  5. Select multiple sheets that are stored in an array (VBA)
    By jkj115 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2015, 06:56 PM
  6. [SOLVED] VBA Collect Values Stored in Merged Cells into Array
    By fiasco in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-24-2014, 11:31 PM
  7. [SOLVED] Variant array changes numbers stored as text
    By bumbochaka in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2013, 11:54 AM

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