+ Reply to Thread
Results 1 to 3 of 3

Variable Matrix Size

  1. #1
    Registered User
    Join Date
    08-12-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Variable Matrix Size

    Hey,
    I have coded a macro for a 5x5 matrix that is then inverted. I wanted to make this matrix variable in size, so for some calculations it would be 10x10 and others 2x2. I attempted to use a 50x50 matrix that would just have unused rows and columns left blank, however this would make the inverted matrix become a null matrix. I also attempted to declare the matrix, X, as X(0 to n, 0 to n) as Variant, however this also did not work, VBA saying that n (a single) was not allowed. Does anyone know how to solve this problem?
    SpeedoJimmy

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Variable Matrix Size

    Welcome to the Board.

    Not entirely sure I follow but perhaps along the lines of:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-12-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Variable Matrix Size

    Yes, exactly what I wanted, thank you. Well done also for deciphering my request.

+ 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