Hi
Hoping someone could help me with the following. I need a macro that will check all cells in Column A and if a colon is not present in the cell then shift the cell to the right.
Before:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]456[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]12:40[/TD]
[TD]abc[/TD]
[TD]def[/TD]
[/TR]
[TR]
[TD]Text[/TD]
[TD]ghi[/TD]
[TD]jkl[/TD]
[/TR]
</tbody>[/TABLE]
After:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]123[/TD]
[TD]456[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]12:40[/TD]
[TD]abc[/TD]
[TD]def[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Text[/TD]
[TD]ghi[/TD]
[TD]jkl[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance.
Matt
Hoping someone could help me with the following. I need a macro that will check all cells in Column A and if a colon is not present in the cell then shift the cell to the right.
Before:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[/TR]
[TR]
[TD]123[/TD]
[TD]456[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]12:40[/TD]
[TD]abc[/TD]
[TD]def[/TD]
[/TR]
[TR]
[TD]Text[/TD]
[TD]ghi[/TD]
[TD]jkl[/TD]
[/TR]
</tbody>[/TABLE]
After:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]123[/TD]
[TD]456[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]12:40[/TD]
[TD]abc[/TD]
[TD]def[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Text[/TD]
[TD]ghi[/TD]
[TD]jkl[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance.
Matt