Info

此问题已关闭。 请重新打开它进行编辑或回答。

Please provide example of how to call MWInitAppl​icationWit​hMCROption​s from Access VBA.

1 次查看(过去 30 天)
Please provide example of how to call MWInitApplicationWithMCROptions from Access VBA. The documentation implies to call it as Call MWInitApplicationWithMCROptions(Empty)
but this throws run-time error 424 Object required
Option Compare Database
Option Explicit
Public gMagicDemo As magicdemo.magicdemoclass
Public gMCUtil As MWComUtil.MWUtil
Sub test()
Dim y As Variant
If gMCUtil Is Nothing Then
Set gMCUtil = New MWUtil
Call gMCUtil.MWInitApplicationWithMCROptions(Empty)
End If
If gMagicDemo Is Nothing Then
Set gMagicDemo = New magicdemoclass
End If
Call gMagicDemo.makesquare(1, y, 5)
End Sub

回答(0 个)

此问题已关闭。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by