Programmatically finding 2007 Excel and other Office GUIDs

G

Gary''s Student

Perhaps:

Sub dural()
On Error GoTo notthere
ChDir "C:\Program Files\Microsoft Office\Office12"
MsgBox ("2007")
Exit Sub
notthere:
MsgBox ("Not 2007")
End Sub

If the Office 12 folder is missing, then components of Office 2007 are
normally not installed.
 
Top