+ Reply to Thread
Results 1 to 8 of 8

Transpose Array Result Empty

  1. #1
    Forum Contributor aprildu's Avatar
    Join Date
    04-13-2014
    Location
    Barrie,On, Canada
    MS-Off Ver
    Excel 2016
    Posts
    175

    Transpose Array Result Empty

    I have an array that is set to variant and then redim preserved. I can see it's clearly populated in the locals window however it's not showing on sheet when I transpose it:

    Please Login or Register  to view this content.
    Similar code works for another two routines but this one is stubborn. I don't know why it comes up empty.
    Last edited by aprildu; 02-10-2018 at 02:08 AM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,596

    Re: Transpose Array Result Empty

    If you get error on the first VLookup, Err.Num stays the same all the way, unless you clear.
    Please Login or Register  to view this content.
    Last edited by jindon; 02-10-2018 at 02:44 AM.

  3. #3
    Forum Contributor aprildu's Avatar
    Join Date
    04-13-2014
    Location
    Barrie,On, Canada
    MS-Off Ver
    Excel 2016
    Posts
    175

    Re: Transpose Array Result Empty

    Thank you. I actually just figured out why. It's because some comments exceed 255 characters that the array just stops functioning as normally it does.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,596

    Re: Transpose Array Result Empty

    Then you should avoid Transpose function
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor aprildu's Avatar
    Join Date
    04-13-2014
    Location
    Barrie,On, Canada
    MS-Off Ver
    Excel 2016
    Posts
    175

    Re: Transpose Array Result Empty

    Then how can I get the comments by using array? I don't want to do one by one as it's much slower

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,596

    Re: Transpose Array Result Empty

    See my previous post.

    You should get familiar with 2D array.

  7. #7
    Forum Contributor aprildu's Avatar
    Join Date
    04-13-2014
    Location
    Barrie,On, Canada
    MS-Off Ver
    Excel 2016
    Posts
    175

    Re: Transpose Array Result Empty

    Thanks I am on mobile that I missed the rest. Will try tomorrow to see if it works. I do know multi dimensional array but didn't know it can solve the character limit issue
    Last edited by aprildu; 02-10-2018 at 12:21 PM.

  8. #8
    Forum Contributor aprildu's Avatar
    Join Date
    04-13-2014
    Location
    Barrie,On, Canada
    MS-Off Ver
    Excel 2016
    Posts
    175

    Re: Transpose Array Result Empty

    Thanks it worked! First I made an error of "redim preserve" the array which should have been just redim
    Last edited by aprildu; 02-10-2018 at 07:11 PM.

+ 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. Transpose a table and fill empty cells with responses
    By Arno_NI in forum Excel General
    Replies: 2
    Last Post: 11-20-2017, 10:47 AM
  2. Show cell empty if result is an error due to empty source
    By jackmcguigan1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2016, 09:54 AM
  3. [SOLVED] Find duplicate in a cloumn and get result from other column as transpose
    By Sideshmukh in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-11-2016, 01:08 AM
  4. [SOLVED] Text to columns, transpose data & final result
    By sam1105 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-19-2015, 03:36 AM
  5. Macro to paste value transpose range adjacent to lookup result
    By SimpleSimon99 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-28-2014, 11:39 PM
  6. find each of the items in an array and save result in another array
    By lif in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2006, 08:54 PM
  7. [SOLVED] When I SUM cells & 1 is empty I need the result to be empty not 0
    By Maribel in forum Excel General
    Replies: 1
    Last Post: 08-01-2005, 08:05 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