+ Reply to Thread
Results 1 to 30 of 30

Recursive reverse BOM or Implosion

Hybrid View

  1. #1
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Recursive reverse BOM or Implosion

    shg,

    Thanks. Still I don't believe there is someone can think about this just using formulas




    micro62w,

    >>> I get an "out of stack space (error 28)" statement
    Oops, that is easy to spot (based on the error code), I made a mistake in the quicksort routine.
    I have updated my code on post #14, please try it again.

    >>> The result may stretch beyond excels limits
    On the updated code on post #14, I change the code so the output will come in several seperated sheets.
    So for example if the output take 2,097,160 rows, the output will be displayed in these sheets :
    - MyResults_1 (1,048,576 rows)
    - MyResults_2 (1,048,576 rows)
    - MyResults_3 (8 rows)

    As for testing purpose, if using your file on post #1, and :
    - change the value of cell bom!E2 to 004/28136/00
    - edit this line of code :
    maxRow = Sheets(1).Rows.Count
    to
    maxRow = 10
    The macro will produce 4 sheets (MyResults_1 to MyResults_4)


    >>> Can the code be carried over the "access" ?
    Maybe, but I am not familiar with "Access", and I can imagine it will be extremely painfully very slow, since the process is performed based on file, not based on memory.
    And beside, even if this could be done, how will you display the result then ?
    But I guess using my edited code above (the output is seperated into several sheets), it will suite your need ?


    >>> Additionally, I am wondering to carry the quantity and or u_m columns along do I continue to add to the existing code or is it best to supplement the results afterward.
    If the problems above have been solved, then we can continue to this your next request (but not before solved).
    If so, then upload your workbook with desired layout result.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  2. #2
    Registered User
    Join Date
    11-16-2018
    Location
    georgia
    MS-Off Ver
    365
    Posts
    17

    Re: Recursive reverse BOM or Implosion

    Hello Karedog

    Everything seems to be working great - again thank you.

    Using excel 2016 - 32bit with 8 gb ram

    Part of this for me is to learn - A lot of what you are doing I do not understand could you possible notate the reason for the loops, would give me a start on understanding.

    I have included what I would be including next which is getting info from other tables and or columns and adding it to the structure. I added the table and put in 2 possible displays. The later is different on the placement I was curious if you thought this version was a more readable format or was more program friendly.

    Also once I understand (hopefully) I would like to add the reversal of extracting a BOM from top down (1 or many levels) and also flattening the BOM and adding up the qty used. I have seen many examples for the later solutions but I want to keep the same technique.

+ 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] Reverse strings udf function to reverse numbers
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2015, 07:03 AM
  2. [SOLVED] Help with Recursive VBA
    By tddavid89 in forum Excel General
    Replies: 2
    Last Post: 11-08-2012, 09:42 PM
  3. [SOLVED] Help with Recursive Call?
    By mark in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-25-2006, 03:50 PM
  4. recursive sums
    By JMB in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 09-06-2005, 03:05 PM
  5. recursive sums
    By JMB in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 04:05 AM
  6. [SOLVED] recursive sums
    By Joe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. recursive sums
    By Joe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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