Set oDispatcher = CreateUnoServiceVB("com.sun.star.frame.DispatchHelper")
Public Function CreateUnoServiceVB(strServiceName) As Object
Dim oServiceManager As Object
Set oServiceManager = CreateObject("com.sun.star.ServiceManager")
Set CreateUnoServiceVB = oServiceManager.createInstance(strServiceName)
End Function