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.