Article ID: 121213
Article Last Modified on 10/11/2006
Show
AddItem
RemoveItem
'Type the following two lines in the declaration section of the Form
Dim Xlobj As Object
Dim Xldlg As Object
'Assign the following to the Click event of Command1 button
Sub Command1_Click ()
Set Xlobj = GetObject("C:\Excel\Mybook.xls")
Set Xldlg = Xlobj.Parent.Sheets("dialog1")
'Xldlg.Show will return the error mentioned above
'Correct syntax
Xldlg.[Show]
End Sub
Additional query words: 5.00c 8.00 97 Visual Basic 3.0 Reference VB3
Keywords: kbdtacode kberrmsg kbinterop KB121213