+ Reply to Thread
Results 1 to 4 of 4

ReDim Y(1 To UBound(X, 1) * UBound(X, 2), 1 To 8)

  1. #1
    Forum Contributor
    Join Date
    03-17-2010
    Location
    karachi
    MS-Off Ver
    Excel 2003
    Posts
    113

    ReDim Y(1 To UBound(X, 1) * UBound(X, 2), 1 To 8)

    please explain ReDim Y(1 To UBound(X, 1) * UBound(X, 2), 1 To 8)

  2. #2
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: ReDim Y(1 To UBound(X, 1) * UBound(X, 2), 1 To 8)

    make the array Y with as rows the product of the number of rows of X (Ubound(x,1)) and the number of columns of X(ubound(x,2)) and 8 columns.
    Both start with row 1 and column 1, that could have been 0 !
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    Re: ReDim Y(1 To UBound(X, 1) * UBound(X, 2), 1 To 8)

    You left out the bit which looks like this line
    x= range("A2").currentregion
    How do I know? I am a mind-reader.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    How is the array X defined?
    If posting code please use code tags, see here.

+ 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] UBound and LBound
    By jonathan.haynes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2013, 05:55 AM
  2. [SOLVED] LBound/UBound Intersect together
    By janulikb in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-21-2013, 05:41 AM
  3. Ubound and Lbound
    By hommer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2010, 11:58 AM
  4. [SOLVED] resize(Ubound, Lbound)
    By ina in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2006, 10:00 AM
  5. Array Ubound
    By gti_jobert in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2006, 05:40 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