A
ABAX via AccessMonster.com
First - thanks for taking the time to read. Here is my situation. I am
trying to call WinZip from my VBA module. I have the macro creating a
spreadsheet and want RunCode macro to simply take the XLS file and turn to
Zip. I have WinZip Pro and the command line add-in. I have tried it from
the run command line and it works. What's the deal? After looking below -
you will probably realize that I am relatively new to VBA. Your help is
greatly appreciated.
Two methods I have tried:
1)Function winZipit(ByVal source As String, ByVal target As String, ByVal zip
As Boolean)
zipIT = App.Path & "wzzip -a"
unzipIT = App.Path & "wzunzip -e "
If zip = True Then
Shell (zipIT & target & source)
Else: Shell (unzipIT & target & source)
End If
End Function
2) Public Function ZipFile()
Shell ("C:\Program Files\WinZip\WZZIP.EXE -a" & "C:\Test.zip" & "C:\Test.xls")
End Function
trying to call WinZip from my VBA module. I have the macro creating a
spreadsheet and want RunCode macro to simply take the XLS file and turn to
Zip. I have WinZip Pro and the command line add-in. I have tried it from
the run command line and it works. What's the deal? After looking below -
you will probably realize that I am relatively new to VBA. Your help is
greatly appreciated.
Two methods I have tried:
1)Function winZipit(ByVal source As String, ByVal target As String, ByVal zip
As Boolean)
zipIT = App.Path & "wzzip -a"
unzipIT = App.Path & "wzunzip -e "
If zip = True Then
Shell (zipIT & target & source)
Else: Shell (unzipIT & target & source)
End If
End Function
2) Public Function ZipFile()
Shell ("C:\Program Files\WinZip\WZZIP.EXE -a" & "C:\Test.zip" & "C:\Test.xls")
End Function