Replace() Function In Word 97

  • Thread starter msnews.microsoft.com
  • Start date
M

msnews.microsoft.com

I am using Word 2003 but I want to find out if the Replace() function was
available in Word 97 VBA for backward compatibility. Is there any way to
find which features became available in which versions of VBA?

Derek
 
J

Jay Freedman

I am using Word 2003 but I want to find out if the Replace() function was
available in Word 97 VBA for backward compatibility. Is there any way to
find which features became available in which versions of VBA?

Derek

Hi Derek,

No, the Replace, Split, and Join functions -- and some others -- were
not in Word 97. They were introduced in Word 2000, when VBA's "base"
changed from VB5 to VB6.

If you have to provide code that runs in all versions of VBA, you'll
need to use the conditional compilation syntax

#If VBA6 Then
' Word 2000 or later
#Else
' Word 97
#End If

The VBA help for each version is on line in MSDN, and each one has
"What's New" pages. For example, the Office 2000 and Word 2000 pages
are at
http://msdn.microsoft.com/library/en-us/off2000/html/ofconWhatsNew.asp
and
http://msdn.microsoft.com/library/en-us/off2000/html/womscwhatsnewdev.asp
respectively. AFAIK there is no comprehensive list of when each
function, object, and property became available -- we've suggested
that each help topic should include that information, but I don't have
high hopes.
 

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