excel_2009
Active Member
- Joined
- Sep 14, 2009
- Messages
- 318
Hi All,
Would it be possible (via VBA) to replace text in an already existing column IF a cell is not blank, the existing text is as follows (in one column on worksheet one):
on worksheet two the following fields are visible:
So the plan would be for the code to replace Clark Kent with Tony S and replace US with DE and leave the Address, State as is.
Would this be possible, if so how?
Many thanks!!
Would it be possible (via VBA) to replace text in an already existing column IF a cell is not blank, the existing text is as follows (in one column on worksheet one):
Code:
[TABLE="width: 108"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Name:Clark Kent[/TD]
[/TR]
[TR]
[TD]Address:Smallville[/TD]
[/TR]
[TR]
[TD]State:Kansas[/TD]
[/TR]
[TR]
[TD]Country:US[/TD]
[/TR]
</tbody>[/TABLE]
on worksheet two the following fields are visible:
Code:
[TABLE="width: 108"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Name:Tony S[/TD]
[/TR]
[TR]
[TD]Address:[/TD]
[/TR]
[TR]
[TD]State:[/TD]
[/TR]
[TR]
[TD]Country:DE[/TD]
[/TR]
</tbody>[/TABLE]
So the plan would be for the code to replace Clark Kent with Tony S and replace US with DE and leave the Address, State as is.
Would this be possible, if so how?
Many thanks!!