+ Reply to Thread
Results 1 to 3 of 3

Assign sheet value to array... and redim the array size

  1. #1
    Registered User
    Join Date
    06-20-2010
    Location
    Mal
    MS-Off Ver
    Excel 2007
    Posts
    25

    Assign sheet value to array... and redim the array size

    Hi, I tried to get put my excel file value at column A to an array. But i keep on get the error msg of "systax error" .. and i have no idea why it is so... Please advise on my mistake...


    Other than tat, is there any other way to get the total row number in stead of running a do loop as below? And i wish to assign the value to array directly while retrieving the row number as i commented in the do Loop... is that possible?

    Please Login or Register  to view this content.
    Thank u

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Assign sheet value to array... and redim the array size

    You appear to be using a variable name which is a reserved keyword. Try something like MyName instead.

    For finding the last row you can use

    Please Login or Register  to view this content.
    and then dimension your array with this variable

    Please Login or Register  to view this content.
    Martin

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Assign sheet value to array... and redim the array size

    To add to mrice
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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