ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to Zip then emai 4 files please (https://www.excelbanter.com/excel-programming/417056-how-zip-then-emai-4-files-please.html)

Simon[_2_]

How to Zip then emai 4 files please
 
HI I use Winzip 11.2.

I wish to zip 4 files monthly (there are other files in the folder).

How do I add (via loops) more than one zipped file?

I was going to use the .SendMail SendTo to email the zipped file.

Thanks

Simon

I was using ub ZipFile()
Dim ZipPath As String
Dim ZipIt As String
Dim Source As String
Dim Dest As String

ZipPath = "C:\Program files\Winzip\"

Source = "N:\mis\location\location Reporting\082008\UKA Reports\CARC-
GE3"
Dest = "C:\tt.zip"
'Note spaces important
ZipIt = Shell(ZipPath & "Winzip32 -a " & Dest & " " & Source,
vbNormalFocus)

Simon[_2_]

How to Zip then emai 4 files please
 
'
' Macro1 Macro
' Macro written 15/09/2008 by axuklslav
'
Sub ZipFile()
Dim ZipPath As String
Dim ZipIt As String
Dim Source As String
Dim Dest As String

ZipPath = "C:\Program files\Winzip\"

Source = "N:\mis\oth\othReporting\082008\UKA Report\"
'Source2 = "N:\mis\oth\othReporting\082008\UKA Reports\CARC-lt3"
'Source3 = "N:\mis\oth\othReporting\082008\UKA Reports\UKA-GE3"
'Source4 = "N:\mis\oth\othReporting\082008\UKA Reports\UKA-lt3"

Dest = "N:\mis\oth\othReporting\082008\UKA Reports"
'Note spaces important

ZipIt = Shell(ZipPath & "Winzip32 -a " & Dest & " " & Source & Source2
& SourceŁ & Source4, vbNormalFocus)

ZipIt = Shell(ZipPath & "Winzip32 -a " & Dest & " " & Source,
vbNormalFocus)

ZipIt.SendMail ", Subject:="RBS2-5 zipped
files, ReturnReceipt:=True"

Thanks

Ron de Bruin

How to Zip then emai 4 files please
 
See
http://www.rondebruin.nl/zip.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Simon" wrote in message ...
HI I use Winzip 11.2.

I wish to zip 4 files monthly (there are other files in the folder).

How do I add (via loops) more than one zipped file?

I was going to use the .SendMail SendTo to email the zipped file.

Thanks

Simon

I was using ub ZipFile()
Dim ZipPath As String
Dim ZipIt As String
Dim Source As String
Dim Dest As String

ZipPath = "C:\Program files\Winzip\"

Source = "N:\mis\location\location Reporting\082008\UKA Reports\CARC-
GE3"
Dest = "C:\tt.zip"
'Note spaces important
ZipIt = Shell(ZipPath & "Winzip32 -a " & Dest & " " & Source,
vbNormalFocus)



All times are GMT +1. The time now is 02:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com