Replace Function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have developed a spreadsheet utilising vba in excel XP. I now discover that the Replace function does not exist in excel 97. I am using the replace function like this

variable1 = Replace(variable2, "text1", "text2"

What code can I use to have the same effect and function in excel 97 and XP?
 
One way:

variable1 = Application.Substitute(variable2, "text1", "text2")
 

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