Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel VBA: Replace$: Sub or Function not defined

Status
Not open for further replies.

SteveJL

Computer
Jun 9, 2004
2
0
0
US
I am using Replace$ in some VBA code in Excel without any problem. I have distributed the file to several testers and for the most part it's ok.

However, one user is getting "Sub or Function not defined" and the Replace$ function is highlighted.

Does anyone know why this is happening?
 
Replies continue below

Recommended for you

What version of Excel (and SP level) is the failing machine running, and how does that compare to all the machines that are running?

I would also check and compare the References between the failing machine and a running machine.
 
Thanks CC. You are correct. The failing workstations (turns out there are more than one) are running with Excel 97. Replace$ is not supported under this version.

The .xls was created with Excel 2002.
 
Status
Not open for further replies.
Back
Top