DougRobertson
Active Member
- Joined
- Sep 22, 2009
- Messages
- 334
- Office Version
- 365
- Platform
- Windows
Hello,
I deal with making reports from radio stations.
When sending me data in Excel, people sometimes inadvertantly leave a space at the end of a stations name. When trying to match up names in n macro, this is a case of "what you don't know (or can't see) can definitely hurt you!"
For instance, if the macro is looking for station "CKNW", and the incoming data only has "CKNW ", we know there's going to be a problem.
Is there VBA code that can delete spaces and just leave hard characters when gleaning information?
Thanks,
~ Doug
I deal with making reports from radio stations.
When sending me data in Excel, people sometimes inadvertantly leave a space at the end of a stations name. When trying to match up names in n macro, this is a case of "what you don't know (or can't see) can definitely hurt you!"
For instance, if the macro is looking for station "CKNW", and the incoming data only has "CKNW ", we know there's going to be a problem.
Is there VBA code that can delete spaces and just leave hard characters when gleaning information?
Thanks,
~ Doug