G
Gary
Hi,
This code works fine in VB6.0, but when used in a Access form, vbCFMetafile
is
becoming empty and raising a run-time error '424' (Object Required)
-----------------------------
Private Sub Command1_Click()
Dim wkb As Excel.Workbook
Set wkb = GetObject("d:\book6.xls")
wkb.Worksheets(1).Range("A1:C5").Copy
Image1.Picture = Clipboard.GetData(vbCFMetafile)
End Sub
Please help me !
Gary
This code works fine in VB6.0, but when used in a Access form, vbCFMetafile
is
becoming empty and raising a run-time error '424' (Object Required)
-----------------------------
Private Sub Command1_Click()
Dim wkb As Excel.Workbook
Set wkb = GetObject("d:\book6.xls")
wkb.Worksheets(1).Range("A1:C5").Copy
Image1.Picture = Clipboard.GetData(vbCFMetafile)
End Sub
Please help me !
Gary