collegeguy
New Member
- Joined
- Jun 22, 2011
- Messages
- 2
Hello everyone...here is my situation.
I'm trying to replace several words in a spreadsheet to match only one value. For example, when I attend an event and prospects enter that they are interested in either nursing, practical nursing, nurse or rpn, I would like those values to be changed to Nursing - Practical to match the data in my CRM before importing.
I've tried a few VBA codes but keep getting errors. I am using office 2007. Here is one that I've tried:
Sub ReplaceCellValues()
For Each Cell In Range("A1:A11")
If Cell = Nursing Then Cell.Value = Practical - Nursing
If Cell = rpn Then Cell.Value = Practical - Nursing
If Cell = Nurse Then Cell.Value = Practical - Nursing
If Cell = Practical Then Cell.Value = Practical - Nursing
Next
End Sub
I took computer programming in college 11 years ago and haven't used it since. Any help would be appreciated.
Thank you
I'm trying to replace several words in a spreadsheet to match only one value. For example, when I attend an event and prospects enter that they are interested in either nursing, practical nursing, nurse or rpn, I would like those values to be changed to Nursing - Practical to match the data in my CRM before importing.
I've tried a few VBA codes but keep getting errors. I am using office 2007. Here is one that I've tried:
Sub ReplaceCellValues()
For Each Cell In Range("A1:A11")
If Cell = Nursing Then Cell.Value = Practical - Nursing
If Cell = rpn Then Cell.Value = Practical - Nursing
If Cell = Nurse Then Cell.Value = Practical - Nursing
If Cell = Practical Then Cell.Value = Practical - Nursing
Next
End Sub
I took computer programming in college 11 years ago and haven't used it since. Any help would be appreciated.
Thank you