I've build a addin that needs two references in order to run:
MSOWC.dll & Msflxgrd.ocx

These files sometimes aren't present on some of the PC's that will use my addin, so how do I check that they are registered?

Something like:

VB Code:
  1. If ReferenceExists("MSOWC.dll") = False Then
  2.     msgbox "False"
  3.     Call RegisterRef("MSOWC.dll") ' Register reference
  4. Else
  5.     msgbox "True"
  6. End If

Is there a way of using Regsvr32.exe in V6B code?