+ Reply to Thread
Results 1 to 5 of 5

Help with arrays

  1. #1
    Registered User
    Join Date
    07-04-2017
    Location
    Belgium
    MS-Off Ver
    365 ProPlus
    Posts
    81

    Help with arrays

    Hi gentlemen,

    My first try at writing array code.

    I would like to rewrite "transpose" some data.

    Prefered end result. -> can also be recreated by running Module2 or the button 'Rework data'!
    I would basically need 51624 rows (72 commodities * 717 months) of 5 columns each

    Knipsel.JPG

    My effort below. I think I (successfully) managed to write down all of the data in arrays, but I have no idea on how to achieve my end result...

    Please Login or Register  to view this content.
    Module3 holds this erreneous array loops.

    Is anyone willing to help me out with Module3?
    I would like to speed up my code by using arrays...

    Thanks
    Attached Files Attached Files
    Last edited by dunnobe; 10-16-2019 at 05:19 AM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Help with arrays

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-04-2017
    Location
    Belgium
    MS-Off Ver
    365 ProPlus
    Posts
    81

    Re: Help with arrays

    Hey @Kenneth Hobson,

    Thanks and rep +1.

    I did a few checks and made a few changes as the year and month weren't correctly calculated and did a small change to the commodity.

    Please Login or Register  to view this content.
    Best regards,

    Bram
    Last edited by dunnobe; 10-16-2019 at 06:09 AM.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Help with arrays

    Kenneth beat me to it but I'll post this anyway.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    07-04-2017
    Location
    Belgium
    MS-Off Ver
    365 ProPlus
    Posts
    81

    Re: Help with arrays

    Thanks norie,

    All roads lead to Rome.

    Always good to see what the different roads are.

+ 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. storing multiple value in a single cell (through arrays or without arrays)?
    By mak51061 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-25-2014, 09:27 PM
  2. Declaring multiple multi-dimensional arrays (jagged arrays) - compile error?
    By dfribush in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2013, 05:06 PM
  3. vba compare arrays and remove exact matching arrays
    By jacojvv in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-25-2013, 07:30 AM
  4. [SOLVED] New to arrays-where do I find a good beginners guide to multi dimensional arrays
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-04-2013, 07:44 PM
  5. Sum columns within arrays and then multiplying arrays [?]
    By slickpusher in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-08-2012, 08:50 PM
  6. Help With Arrays, real Basic Arrays
    By Markva in forum Excel General
    Replies: 3
    Last Post: 08-20-2008, 04:11 PM
  7. [SOLVED] Arrays - declaration, adding values to arrays and calculation
    By Maxi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2006, 11:15 AM

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