+ Reply to Thread
Results 1 to 21 of 21

Create Where-Used Report Hierarchially

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    01-25-2025
    Location
    Presov, Slovakia
    MS-Off Ver
    2021
    Posts
    323

    Re: Create Where-Used Report Hierarchially

    Hi,
    "Output - Part"
    After pressing the "generate part" button, the code tests cell "E2":
    - if it is not empty, the code ends (there is a report in the sheet),
    - if it is empty, the code continues,
    After testing "E2", the code makes a copy of the source data from the sheet "Output - Part" to the sheet "Old_1".
    And here I see:
    - you deleted column "E" in the sheet "Output - Part", thereby fooling my test on "E2".
    - you ran the macro on the old report, where for example the first number is listed 9 times. The macro then makes the same report 9 times.

    To clarify: the code I wrote was mainly to verify its functionality.
    It does not solve anything else.
    It does not solve, for example, the situation described above = the code simply assumes that there are source numbers in column "A" that it should process.
    If you write your suggestions on how it should work, I can add it.
    For example. source data will be in one sheet, report in another - macro can be run repeatedly without limitation.

    (Level 4, 5, 6, etc)
    ,
    The code cannot be easily adapted to more, or an indefinite number of levels.
    It is certainly possible, but the code will be more complicated.
    It's a shame you didn't mention it at the beginning.
    m.s.

  2. #2
    Registered User
    Join Date
    11-11-2024
    Location
    Bengaluru
    MS-Off Ver
    Office 365
    Posts
    30

    Re: Create Where-Used Report Hierarchially

    Hi MS,
    Thanks you..
    I couldn't mention on the levels in the beginning because I did not encounter any BoM > 3 levels, but found couple of BoMs recently. Hence asked.

    Thank you for all the help/support.

  3. #3
    Registered User
    Join Date
    11-11-2024
    Location
    Bengaluru
    MS-Off Ver
    Office 365
    Posts
    30

    Post Re: Create Where-Used Report Hierarchially

    Hi MS,

    I just encountered cases, where the part which is in Column B of level 2, is also in Column A of Level 1, which also should be reported.
    Ex: 70072272 -> 70213552 -> 104588202 (Current, Tool is giving this rightly), but 70072272 is also in Column B of Level 1 reporting to 113 part numbers which also should be including along with 104588202.

    Can you pls help with the modification

    Note: I have removed the hierarchy macro and other sheets to have the file size < 1MB as needed by this thread(Sorry about that)Value Change_Updated.xlsm

    I could not delete the attachment with the name Value Change.xlsm (Pls do not use this), use only Value Change_Updated.xlsm
    Attached Files Attached Files
    Last edited by svijikumar; 04-16-2025 at 09:09 AM. Reason: Updated attachement

+ 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. How to create automatically new sheets and the in each one of them create a report
    By ricardoz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-25-2018, 04:17 PM
  2. [SOLVED] Vba to create report
    By phbryan in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 04-17-2018, 10:08 AM
  3. Create a running total - create a "pretty" report
    By excelnewbie1234567 in forum Excel General
    Replies: 1
    Last Post: 03-08-2017, 11:41 AM
  4. [SOLVED] How to create this report
    By sarahqputra in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2014, 02:12 AM
  5. Replies: 2
    Last Post: 06-29-2011, 04:35 PM
  6. Create a Report
    By bhallam in forum Access Tables & Databases
    Replies: 5
    Last Post: 03-18-2011, 03:21 PM
  7. trying to create a report
    By BudS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2006, 09:30 AM

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