keywordmonkey
IS-IT--Management
Hi
I've got lots of sheets with text in cell A that has spaces at the start/end/both, of the text.
Currently I can remove this by pasting into Word, justifying into the centre, to the right and then to the left (the only clumsy solution I've found).
I'd like to either use a macro to do this in Excel, or if that's not possible have Word open hidden in the background, justify as described above, and paste back into Excel.
On other occasions, I often need to change the case of all the text in a column in Excel to sentence case, but Excel only does uppercase/lowercase/Capitalise Every Word. Currently I do this by pasting into Word too and using Format>Change Case.
I've found passing references to using Word functions via Excel VBA, but don't know where to start.
So I need help! Thanks in advance.
I've got lots of sheets with text in cell A that has spaces at the start/end/both, of the text.
Currently I can remove this by pasting into Word, justifying into the centre, to the right and then to the left (the only clumsy solution I've found).
I'd like to either use a macro to do this in Excel, or if that's not possible have Word open hidden in the background, justify as described above, and paste back into Excel.
On other occasions, I often need to change the case of all the text in a column in Excel to sentence case, but Excel only does uppercase/lowercase/Capitalise Every Word. Currently I do this by pasting into Word too and using Format>Change Case.
I've found passing references to using Word functions via Excel VBA, but don't know where to start.
So I need help! Thanks in advance.