Hi Yeghia,
Assuming that there is only a single version of Microsoft Office or a
single version of an office component installed on the computer, you could
use automation to launch a specific office component and then use the
following syntax to retrieve the version information for this component.
MsgBox oWordApp.Version
MsgBox oWordApp.Build
where oWordApp is an application variable for Microsoft Word.
Once you have the version and build number for the office application, you
can determine which service packs have been applied by referencing the
following Knowledge Base articles.
248710 OFF97: Overview and History of Office 97 Patches
http://support.microsoft.com/?id=248710
255275 OFF2000: How to Determine the Version of Your Office Program
http://support.microsoft.com/?id=255275
305095 OFFXP: History of Office XP Updates
http://support.microsoft.com/?id=305095
I hope this helps!
If you have any questions please let me know via the posting.
Regards,
Ken Laws
Microsoft Support
This posting is provided "AS IS" with no warranties, and confers no rights.