Export Element command not working in microstation using vba

I need to call "Export Element" command using vba code in microstation. But modalHandler has not trigger the "Export Element" command. Please guide me how to call "Export Element" command using vba.

Here I copied my code:

Implements IModalDialogEvents
Private Sub IModalDialogEvents_OnDialogClosed(ByVal DialogBoxName As String, ByVal DialogResult As MsdDialogBoxResult)
End Sub
Private Sub IModalDialogEvents_OnDialogOpened(ByVal DialogBoxName As String, DialogResult As MsdDialogBoxResult)
    If DialogBoxName = "Create Export File" Then
        CadInputQueue.SendCommand "MDL COMMAND MGDSHOOK,fileList_setFilterCmd *.txt"
        CadInputQueue.SendCommand "MDL COMMAND MGDSHOOK,fileList_setDirectoryCmd D:\"
        CadInputQueue.SendCommand "MDL COMMAND MGDSHOOK,fileList_setFileNameCmd 81.txt"
    '   Remove the following line to let the user close the dialog box.
        DialogResult = msdDialogBoxResultOK
    End If  ' Create Export File
    If DialogBoxName = "Alert" Then
    '   Remove the following line to let the user close the dialog box.
        DialogResult = msdDialogBoxResultOK
    End If  ' Alert
End Sub
Sub Macro1()
    Dim startPoint As Point3d
    Dim point As Point3d, point2 As Point3d
    Dim lngTemp As Long
'   The following statement opens modal dialog "Alert"
    Dim modalHandler As New Macro16ModalHandler
    AddModalDialogEventsHandler modalHandler
'   The following statement opens modal dialog "Create Export File"
'   Start a command
    CadInputQueue.SendCommand "EXPORT ELEMENT "
    RemoveModalDialogEventsHandler modalHandler
    CommandState.StartDefaultCommand
End Sub