Solved

emailing with winzip with vb50

Posted on 2002-04-22
7
168 Views
Last Modified: 2010-05-02
I would like my users to select a button and on execution it will zip a file attach it to a new e-mail.

I am using winzip 8.1 outlook 98 and vb5.0

Any suggestion on how to achieve this.

Thanks
Steve
0
Comment
Question by:steve_mills
  • 4
  • 2
7 Comments
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6961871
Hi!

Here's something for you over the net:

View code...
http://www.planetsourcecode.com/vb/scripts/ShowCodeAsText.asp?txtCodeId=5946&lngWId=1

Description: This code will send email through MS Outlook 98, (or the most current version on your computer), using MS Excel 7.0 or higher.

This will help you to attach and send a mail using outlook.

That's it!

glass cookie : )

PS. Wait till I get the winzip coding...
0
 
LVL 8

Accepted Solution

by:
glass_cookie earned 200 total points
ID: 6961876
OK, got the link...

View code...
http://www.planetsourcecode.com/vb/scripts/ShowCodeAsText.asp?txtCodeId=14063&lngWId=1
Description: Simple code to zip/unzip with Winzip

AND

View code...
http://www.planetsourcecode.com/vb/scripts/ShowCodeAsText.asp?txtCodeId=4696&lngWId=1
Description: this is actually not a code but this is just a list of parameters to use WinZip in VB.. I hope this will help those who are interested in my previous posting namely: "Compressing Files thru VB(w/WinZip)"

That's it!

glass cookie : )
0
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6961880
First, compress the file, wait until the file is generated, then use the 1st link that I posted to send attach and the mail.

To wait, you could do something like:

While Dir("C:\My Folder\GeneratedZipFile.zip") = ""
DoEvents 'Send a pause
Wend

That's it!

glass cookie : )
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 69

Expert Comment

by:Éric Moreau
ID: 6961881
see this other free component for zipping at http://vbaccelerator.com/codelib/zip/zipvb.htm

a question about e-mailing is already active at http://www.experts-exchange.com/visualbasic/Q.20292494
0
 

Author Comment

by:steve_mills
ID: 6961951
glass cookie

Having trouble passing info to the winzip code.

Could you send some code showing me how to pass varibale to the winzipit function.

Thanks
Steve
0
 

Author Comment

by:steve_mills
ID: 6970095
Thanks for the info I know have enough info to go on with

Thanks
Steve
0
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6970294
Oops!  Sorry for not replying to your previous post - I forgot about it since the last time I saw it.

Thanks for the points : )

That's it!

glass cookie : )
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now