Sorry just noticed that I posted "2011" and "2012" in my code which was from the original source. This will read as (for example):
The status bar doesn't matter, am happy to have names showing there. The worksheet(s) we use have 1000's of comments and I just want them to look tidy by removing names from the top of the comment text. The suggestion of FontStyle set to 'Standard' does exactly the same as 'Normal' as far as my testing shows which is fine because this is what I want it to do anyway.
The problem I am having with the code at the moment is that it leaves a blank line above the comment text:
Before:
1 Harribone:
2 This is a comment
3 I have typed
After sub ran:
1
2 This is a comment
3 I have typed
The 1,2,3 reprsent each line in the comment. When the name (Harribone: ) is replaced with "" it leaves a blank line. Do I need to modify the code in place or add more code to remove the top line?
If this is possible.
I have recorded a macro to see what the text looks like in code form (Cell D6):
With the blank line -
Without blank line:
I'm clueless on writing code as I'm still working my way through excel formulas at the moment. Hopefully there is a way of looping through all comments on a sheet, store/extract the text in the comment, trim the "" & Chr(10) & from it then change the comment text to the new trimmed value.
Bookmarks