View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Stripping The First Four Characters from a value

If all your data to fix is in the same column, you could record a macro when you
select that range.

Then Data|Text to columns
Fixed width
draw a line between the 4th and 5th character (and no other lines)
and skip (do not import) that first field.

With lots of data, I would bet that this would be faster than looping through
the range.

Rob wrote:

Hi,
What I am trying to figure out is how I can remove the first four characters
via a VBA Macro from a value of a cell.

Here's the example...

Edition = ActiveCell.FormulaR1C1 (this returns a value of "Rev XA" or "Rev
-" or "Rev 2")

What I want the macro to do is strip the "Rev " and just keep everything
from the fifth character on so I get (XA or - or 2)

Any Ideas??

Thanks In Advance,
Rob


--

Dave Peterson