zip excel表格 [英] zip excel sheet
本文介绍了zip excel表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Dim oZip As CGZipFiles
set oZip = new CGZipFiles
oZip.ZipFileName = "\MyZip.Zip"
oZip.AddFile "c:\mystuff\myfiles\*.*"
oZip.AddFile "c:\mystuff\mymedia\*.wav"
If oZip.MakeZipFile <> 0 then
MsgBox oZip.GetLastMessage
End If
set oZip = nothing
在我的项目中编写此文件时....出现以下错误...
尚未定义CGZipFiles".
when am writing this in my project .... the following error is coming...
CGZipFiles'' is not defined.
推荐答案
该错误表示尚未在您的应用程序中定义CGZipFiles类型.
这意味着您需要引用它(如果它是DLL或类似的文件),或包括提供CGZipFiles定义(和功能)的类模块.
The error means that the type CGZipFiles has not been defined in your application.
This means you need to reference it (if it''s a DLL or similar), or include a class module that provides the definition (and functionality) of CGZipFiles.
这篇关于zip excel表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文