Hi,
I am using the Xceed Zip Control, and want to add it to a Microsoft Excel VBA module. I have created a module, and added the reference to the Control. Here is the sample Code to reference the control:
General Declarations
Dim WithEvents XceedZip1 As XceedZip
Sub CreateReport()
Set XceedZip1 = New XceedZip
XceedZip1.ZipFilename = "d:\temp\exceed.zip"
XceedZip1.FilesToProcess = "testpower.xls"
XceedZip1.Zip
End Sub
When I try to run the code I get the following error:
Compile Error
Only Valid in Object Module.
Im pretty new to VBA, and am lost as to what to do..Please help. Thanks
I am using the Xceed Zip Control, and want to add it to a Microsoft Excel VBA module. I have created a module, and added the reference to the Control. Here is the sample Code to reference the control:
General Declarations
Dim WithEvents XceedZip1 As XceedZip
Sub CreateReport()
Set XceedZip1 = New XceedZip
XceedZip1.ZipFilename = "d:\temp\exceed.zip"
XceedZip1.FilesToProcess = "testpower.xls"
XceedZip1.Zip
End Sub
When I try to run the code I get the following error:
Compile Error
Only Valid in Object Module.
Im pretty new to VBA, and am lost as to what to do..Please help. Thanks