+ Reply to Thread
Results 1 to 7 of 7

Need a macro that will disassemble a table and reformat it for upload

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    5

    Need a macro that will disassemble a table and reformat it for upload

    I am looking to create a macro that will take a database and disassemble it so I can upload it into our ERP system

    Example: I have a chart that looks something like this...

    Sales
    Jan Feb Mar Apr May Jun
    Tool 1 1 5 8 2 20 3
    Tool 2 5 6 9 8 12 2
    Tool 3 2 5 2 2 9 5
    Tool 4 7 5 4 6 3 10

    And I want the macro to turn it into this...

    Jan Tool 1 1
    Feb Tool 1 5
    Mar Tool 1 8
    Apr Tool 1 2
    May Tool 1 20
    Jun Tool 1 3
    Jan Tool 2 5
    Feb Tool 2 6
    Mar Tool 2 9
    Apr Tool 2 8
    May Tool 2 12
    Jun Tool 2 2
    Jan Tool 3 2
    Feb Tool 3 5
    Mar Tool 3 2
    Apr Tool 3 2
    May Tool 3 9
    Jun Tool 3 5
    Jan Tool 4 7
    Feb Tool 4 5
    Mar Tool 4 4
    Apr Tool 4 6
    May Tool 4 3
    Jun Tool 4 10

    Any Thoughts?

    Thanks!

    Erick

  2. #2
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: Need a macro that will disassemble a table and reformat it for upload

    Run ReportOut procedure.
    Output in in the Immediate Windows
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need a macro that will disassemble a table and reformat it for upload

    Where does the revised data go? I am not seeing anything when I run the macro...

  4. #4
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: Need a macro that will disassemble a table and reformat it for upload

    The original output went to the Immediate Window.
    This one output to "Sheet2"
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-09-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need a macro that will disassemble a table and reformat it for upload

    Tony,

    Very close...I just need the data in different columns.

    ie: Date in Column A, item in Column B and quantity in Column C

    Thanks!

    Erick

  6. #6
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: Need a macro that will disassemble a table and reformat it for upload

    Try this one then!
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-09-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need a macro that will disassemble a table and reformat it for upload

    That is it exactly!

    Thanks so much for your help.

    Erick

+ 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. [SOLVED] Possible to disassemble a Column?
    By mapleaes in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-19-2014, 12:56 AM
  2. Add row to table and reformat the staggered coloring
    By aloha31 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-05-2013, 05:53 PM
  3. [SOLVED] Reformat vertical table to a horizontal table
    By roversfan09 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-25-2013, 12:28 AM
  4. Macro to reformat data in horizontal format to a proper Data table
    By hkaushal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2013, 08:47 PM
  5. Reformat source file as table
    By rafster in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2008, 10:05 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