Substitute in Excel VBA

  • Thread starter Thread starter Angry Little Asian Bitch
  • Start date Start date
A

Angry Little Asian Bitch

Hi, I'm a beginner for Excel VBA.
What I want to do is to take out the first 15 characters in column C,
and copy the rest to clumn A. I have the following code, but VBA don't
recognize substitute funciton. Help....

Cells(n, 1).Value = Substitute(Cells(n, 3).Value, Left(Cells(n,
3).Value, 15), "", 1)
 
In VBA, it is Replace

Replace(expresssion, find_waht, replace_with)

--
HTH

Bob Phillips

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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

Back
Top