I have a macro which takes the text out of col B of the active row and adds some other text and moves it to another column (C)
Often the text in col B will start with "● Alert - 77777777 has done [something]".
"● Alert - " is constant but the number (in this case "77777777") will change depending on the active row. The number is drawn from col D of the active row.
Before the text in col B is moved to col C and more text is added, I'd like to remove ● Alert - 77777777. Is there any way to do this?
The code I currently have is:
Sheets("AddCap").Range("C" & (ActiveCell.Row)).Value = "History of property - removed because" & Sheets("AddCap").Range("B" & (ActiveCell.Row)).Value
But this results in col C saying:
History of property - removed because ● Alert - 77777777 has done something
And I'd like the result in col C to be:
History of property - removed because they have done something
And this is what is contained on each row in the sheet named AddCap:
Any help would be appreciated.
Often the text in col B will start with "● Alert - 77777777 has done [something]".
"● Alert - " is constant but the number (in this case "77777777") will change depending on the active row. The number is drawn from col D of the active row.
Before the text in col B is moved to col C and more text is added, I'd like to remove ● Alert - 77777777. Is there any way to do this?
The code I currently have is:
Sheets("AddCap").Range("C" & (ActiveCell.Row)).Value = "History of property - removed because" & Sheets("AddCap").Range("B" & (ActiveCell.Row)).Value
But this results in col C saying:
History of property - removed because ● Alert - 77777777 has done something
And I'd like the result in col C to be:
History of property - removed because they have done something
And this is what is contained on each row in the sheet named AddCap:
A | B | C | D |
Irrelevant | ● Alert - 77777777 has done something | 77777777 |
Any help would be appreciated.