Nick van Staden
New Member
- Joined
- Dec 6, 2017
- Messages
- 18
- Office Version
- 365
- Platform
- Windows
Looking for an excel VBA that will assist with the following:
<tbody>[TR]
[TD][/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]<strike></strike>
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]FPO00111[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]<strike></strike>
[/TD]
[TD]FPE103[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>
So the response should be:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]<strike></strike><strike></strike>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]<strike></strike>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]<strike></strike><strike></strike>[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]<strike></strike><strike></strike>[/TD]
[TD]<strike></strike>[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike><strike></strike>
if column A has content swap it with content in column B
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]
FPE100
<strike></strike>[/TD]
[/TR]
[TR]
[TD]<strike></strike>
[/TD]
[TD]
FPE101
<strike></strike>[/TD]
[/TR]
[TR]
[TD]
FPA001
<strike></strike>[/TD]
[TD]FPO00111[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
FPE102
<strike></strike>[/TD]
[/TR]
[TR]
[TD]<strike></strike>
[/TD]
[TD]FPE103[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>
So the response should be:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]
FPE100
[/TR]
[TR]
[TD]<strike></strike><strike></strike>[/TD]
[TD]
FPE101
[/TR]
[TR]
[TD]
FPO00111
[TD]
FPA001
[/TR]
[TR]
[TD]<strike></strike><strike></strike>[/TD]
[TD]
FPE102
[/TR]
[TR]
[TD]<strike></strike><strike></strike>[/TD]
[TD]
FPE103
[/TR]
</tbody>[/TABLE]
<strike></strike><strike></strike>
Last edited: