I need macro to cleanse Users column in following table.
My requirement is to split users column and extract user names between single quote ' and then create new record by copying those users in Owner column with DateTime and FileName as same.
There may or may not be users in in Users column
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]DateTime
[/TD]
[TD]FileName
[/TD]
[TD]Owner
[/TD]
[TD]Users
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]wrig
[/TD]
[TD];1000000000;'cwatters';'kzal';20602;1500000057;'mhoy';'wrig';'spwi';'gcho';
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:40:52 PM
[/TD]
[TD]Test2
[/TD]
[TD]kcuu
[/TD]
[TD];1000000000;20602;1500000001;
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:43:24 PM
[/TD]
[TD]Test3
[/TD]
[TD]dmvv
[/TD]
[TD];1000000000;20602;'imjf';'nvey';'lhex';'cqws';1500000001;
[/TD]
[/TR]
</tbody>[/TABLE]
Result should look like
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]DateTime
[/TD]
[TD]FileName
[/TD]
[TD]Owner
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]wrig
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]cwatters
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]kzal
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]mhoy
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]wrig
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]spwi
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]gcho
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:40:52 PM
[/TD]
[TD]Test2
[/TD]
[TD]kcuu
[/TD]
[/TR]
</tbody>[/TABLE]
I am able to use split the column into different columns and extract only user names which are present within single quote using but couldn't able to satisfy my complete requirement.
Appreciate your help.
Thanks,
My requirement is to split users column and extract user names between single quote ' and then create new record by copying those users in Owner column with DateTime and FileName as same.
There may or may not be users in in Users column
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]DateTime
[/TD]
[TD]FileName
[/TD]
[TD]Owner
[/TD]
[TD]Users
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]wrig
[/TD]
[TD];1000000000;'cwatters';'kzal';20602;1500000057;'mhoy';'wrig';'spwi';'gcho';
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:40:52 PM
[/TD]
[TD]Test2
[/TD]
[TD]kcuu
[/TD]
[TD];1000000000;20602;1500000001;
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:43:24 PM
[/TD]
[TD]Test3
[/TD]
[TD]dmvv
[/TD]
[TD];1000000000;20602;'imjf';'nvey';'lhex';'cqws';1500000001;
[/TD]
[/TR]
</tbody>[/TABLE]
Result should look like
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]DateTime
[/TD]
[TD]FileName
[/TD]
[TD]Owner
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]wrig
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]cwatters
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]kzal
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]mhoy
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]wrig
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]spwi
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:36:55 PM
[/TD]
[TD]Test1
[/TD]
[TD]gcho
[/TD]
[/TR]
[TR]
[TD]9/21/2015 1:40:52 PM
[/TD]
[TD]Test2
[/TD]
[TD]kcuu
[/TD]
[/TR]
</tbody>[/TABLE]
I am able to use split the column into different columns and extract only user names which are present within single quote using but couldn't able to satisfy my complete requirement.
Appreciate your help.
Thanks,