Stripping out contents of a cell after 8 characters?

  • Thread starter Lance Hoffmeyer
  • Start date
L

Lance Hoffmeyer

Is there a way to strip out the contents of a cell after 8 characters?

The cell may have the following contents:
Q22_2 N22 The only supplement I ever take is a multivitamin
and I want to reduce it down to:
Q22_2

I am going to modify this as a loop to include a range of cells


Lance
 
J

JulieD

Hi Lance

in your example to strip down to 5 characters .. so maybe something like
this will give you an idea
--

Sub strip8()
For Each c In Range("A1:A100")
c.Value = Left(c.Value, 8)
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top