I am exporting a parts list from a schematic program. I need to be able to sort in a specific order to group the components by type and then by part number. I have that figured out.
What I need to do now is add a new number automatically that will group all common part numbers with the same new number with some numbers at a predefined position. We have common parts on all parts lists.
IE All capacitors with xxx-xxxxx1 will be item 10
All capacitors with xxx-xxxxx2 will be item 11 etc.
I would also like to be able to insert x# of blank numbers between groups. Example: Caps from 10-30 then diodes would start 5 after that at 35.
Is this even possible?
I am trying to automate the generation of parts lists so that all someone has to do is push one or two buttons, the macros/VBA code is run and the resulting report can be uploaded into the system.
This is what I would like it to look like at the end. The only difference between 'before' and 'after' is the addition of the position number for the final report having all the same part numbers assigned the same position number.
part number ref value position description
550-2127-476 C57 47uF 15 CAP,CHP,TANT,L-ESR 47UF
550-2137-103 C14 100pF 16 CAP,CHP,CER,X7R,100PF
550-2137-103 C16 100pF 16 CAP,CHP,CER,X7R,100PF
550-2137-103 C14 100pF 16 CAP,CHP,CER,X7R,100PF