Consulting

Results 1 to 4 of 4

Thread: Macro for numbering several levels

  1. #1
    VBAX Newbie
    Joined
    Mar 2023
    Posts
    2
    Location

    Macro for numbering several levels

    Hello.
    I have a problem with a macro.
    I need a macro that will print the numbering in column A depending on the level of the grouped row.
    There are rows grouped into several levels (for example, 3 levels, but there may be more)

    Files in attachment.
    TC_BOM_01 - FINAL - this is how it should look like.
    TC_BOM_01 - MAIN - file on which the macro should be launched.

    I would be very grateful for your help
    Attached Files Attached Files

  2. #2
    see if this is what you need.
    Attached Files Attached Files

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    arnelgp has given you a working solution, but ... this seems so wrong to me.

    You are using a visualisation to determine what your result should be. There should be something in the data that determines what the level of the BoM is, it is too easy to get the outlines wrong and mess up.

    Always data!
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    VBAX Newbie
    Joined
    Mar 2023
    Posts
    2
    Location
    Hi.
    It works!!
    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •