+ Reply to Thread
Results 1 to 6 of 6

Transposing an Array

  1. #1
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Transposing an Array

    Please Login or Register  to view this content.
    Looking to pass an array into the cells using code similar to this:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Transposing an Array

    I'm not actually sure what you need help with. Also, I am not a fan of all your input boxes that pop up in your macro. What happens if someone makes a mistake and press enter? How do they go back and fix it?

  3. #3
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: Transposing an Array

    Mally,

    I am trying to streamline the code from:

    Please Login or Register  to view this content.
    to something within a line or four. I know it can be done, but I don't understand the code. I am too new to this.

    As far as error correction goes, the bill is printed onto the screen (using the above code) and then:

    Please Login or Register  to view this content.
    It allows them to identify where the error is and correct the whole line.

  4. #4
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: Transposing an Array

    Unsolved thread. Bumping

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Transposing an Array

    lloydgodin,

    Working off of your original post, it won't be quite that simple. You can avoid the loop, but it will be several range().value = transpose(array). This is because you are using many 1-dimensional arrays instead of a single 2-dimensional array. Here's the code that will avoid the loop though:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: Transposing an Array

    works great. Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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