+ Reply to Thread
Results 1 to 2 of 2

VBA Array Formula cant transpose to rows

  1. #1
    Registered User
    Join Date
    02-20-2009
    Location
    MO
    MS-Off Ver
    Excel 2003
    Posts
    4

    VBA Array Formula cant transpose to rows

    I have a formula for a spline function that I grabbed off the internets. It will only work if the input ranges and output ranges are columns.

    I would really like to use this when inputs and outputs are in rows, but cant figure out how to make it work...Application.transpose() does not help either

    any help would be greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    02-20-2009
    Location
    MO
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: VBA Array Formula cant transpose to rows

    Nevermind...I got it.

    The formula is set to use columns, so I have to transpose the row inputs to columns, then transpose it back to rows when its done.

    Sloppy, but I know how to code better than change the math....

    instead of this
    Xa = Xa.Value2

    I would use this
    if Application.caller.rows.count = 1 then Xa = Application.Transpose(Xa.Value2)

+ 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