Hello Wizards!
Really hoping someone can help. Apologies if I break any forum rules. I am fairly new to VBA and have searched many threads but couldn't find anything for my problem.
Unable to post an example here but hopefully the below illustration helps. I am trying to copy data from the right until I hit the next header without impacting position of data based on headers. The problem is that the headers appear multiple times in the worksheet.
First header appears in Row3
Current state:
Desired state:
I would be grateful if anyone is able to help!
Really hoping someone can help. Apologies if I break any forum rules. I am fairly new to VBA and have searched many threads but couldn't find anything for my problem.
Unable to post an example here but hopefully the below illustration helps. I am trying to copy data from the right until I hit the next header without impacting position of data based on headers. The problem is that the headers appear multiple times in the worksheet.
First header appears in Row3
Current state:
Header1 | Header2 | Header3 | Header4 | Header5 | ||
data | data | data | ||||
data | data | data | ||||
data | data | data | ||||
Header1 | Header2 | Header3 | Header4 | Header5 | ||
data | data | data | data | |||
data | data | |||||
data | data | data | data | |||
Header1 | Header2 | Header3 | Header4 | Header5 | ||
data | data | |||||
data | data | data | ||||
data | data | data |
Desired state:
Header1 | Header2 | Header3 | Header4 | Header5 |
data | data | data | ||
data | data | data | ||
data | data | data | ||
Header1 | Header2 | Header3 | Header4 | Header5 |
data | data | data | data | |
data | data | |||
data | data | data | data | |
Header1 | Header2 | Header3 | Header4 | Header5 |
data | data | |||
data | data | data | ||
data | data | data |
I would be grateful if anyone is able to help!