Hello everybody,
I am doing a project for HS and ran into a wall with a macro. The solution might be quite simple but I do not have the knowledge yet to solve it by myself.
So, I have a file with multiple exported sheets that I edited in the right format with a macro. Then I copy the columns "Host code" and "Host name" to "Sheet1" and by the value in "host code" count all the matches in "Sheet 2" and display the value in "quantity". I then insert the corresponding number of empty rows below that row. I managed to make those macros to work but have a lot of issues with the next step
What I would like to do now is populate those cells below "host name" (column B) with the corresponding "gear text" (column C) from "sheet 2". So, if a host has 5 types of gear, 5 empty rows were already created below his entry in "Sheet 1" and now need to be populated with the matching "gear text" from "sheet 2". Some Hosts have 0 gear, so nothing gets copied (their code is not present in "sheet 2"), some hosts have up to 15 types of gear.
Sheet 1:
Sheet 2:
If anyone could give me a helping hand, I would be really grateful. Thank you!
I am doing a project for HS and ran into a wall with a macro. The solution might be quite simple but I do not have the knowledge yet to solve it by myself.
So, I have a file with multiple exported sheets that I edited in the right format with a macro. Then I copy the columns "Host code" and "Host name" to "Sheet1" and by the value in "host code" count all the matches in "Sheet 2" and display the value in "quantity". I then insert the corresponding number of empty rows below that row. I managed to make those macros to work but have a lot of issues with the next step
What I would like to do now is populate those cells below "host name" (column B) with the corresponding "gear text" (column C) from "sheet 2". So, if a host has 5 types of gear, 5 empty rows were already created below his entry in "Sheet 1" and now need to be populated with the matching "gear text" from "sheet 2". Some Hosts have 0 gear, so nothing gets copied (their code is not present in "sheet 2"), some hosts have up to 15 types of gear.
Sheet 1:
Sheet 2:
If anyone could give me a helping hand, I would be really grateful. Thank you!