Hi all,
Thank you if you can help me. I've been trying to write this for a couple of days.
I have a set of data that I copy and paste from the web that doesn't include blanks. So when I Power Query the data in try to Pivot the data it can go out to ZZZ on occassion.
The data looks like this in a table:
DATA TABLE
Last Name
Test
First Name
Test
User ID
Test
Type
Permanent
Class
Class 1
Effective Date
dd/mm/yyyy
Status
Active
Request type
Assess
Facility
Test
And it repeats...
However when you copy over and there are blanks under "Class" and "Request type" it won't copy over the blank. Can someone provide me a VBA code that will insert a blank row following these two conditions:
- If row contains "Request type" and next row doesn't say "Assess" or other words then add a blank row underneath; and
- if row contains "Class" and next row doesn't begin with "Class' then add a blank row.
Any help would be much appreciated.
Cheers,
Thank you if you can help me. I've been trying to write this for a couple of days.
I have a set of data that I copy and paste from the web that doesn't include blanks. So when I Power Query the data in try to Pivot the data it can go out to ZZZ on occassion.
The data looks like this in a table:
DATA TABLE
Last Name
Test
First Name
Test
User ID
Test
Type
Permanent
Class
Class 1
Effective Date
dd/mm/yyyy
Status
Active
Request type
Assess
Facility
Test
And it repeats...
However when you copy over and there are blanks under "Class" and "Request type" it won't copy over the blank. Can someone provide me a VBA code that will insert a blank row following these two conditions:
- If row contains "Request type" and next row doesn't say "Assess" or other words then add a blank row underneath; and
- if row contains "Class" and next row doesn't begin with "Class' then add a blank row.
Any help would be much appreciated.
Cheers,