I’m completely new to Macro programming in Excel, and can’t find any references to resolve my question.
I have a column of several words in Excel. If the word is a verb it has an asterisk immediately succeeding the word (without a space).
For example, part of the column looks like this:
accuse*
accustomed be*
acid
acidic
acquire*
acre
So I need to:
- Find all instances in which a cell ends with an asterisk, delete that asterisk, and put the word “to” in front of the cell entry.
- If the word has “be*” then I need to delete the asterisk, the word “be”, and put “to be” in the front.
The finished column should look like this:
to accuse
to be accustomed
acid
acidic
to acquire
acre
Is this possible?
try this (select the list then run this)
Actual data includes training Linefeed character, sometimes a space before the *, and sometimes terms after the *
This version deals with these issues