MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 17th, 2002, 08:19 PM   #1
RichardS
Board Regular
 
RichardS's Avatar
 
Join Date: Feb 2002
Location: Victoria, Australia
Posts: 761
Default

I have a macro which cycles through a workbook, copies infomraton from each sheet onto a blank sheet, and emails the sheet to an email address on the sheet. It was originally developed in an earlier version of Office and worked fine. Now in Office 2000, a message comes up from Outlook saying that a program is trying to automatically send an email, is this OK, waits 5 seconds before it lets me click OK. I'm aware this is a feature which is trying to prevent spread of viruses, but the Macro sends about 120 emails, and sitting there clicking OK every five seconds sort of defeast the purpose.

TIA

Richard
RichardS is offline   Reply With Quote
Old Mar 17th, 2002, 08:25 PM   #2
Ivan F Moala
MrExcel MVP
 
Ivan F Moala's Avatar
 
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
Default

Quote:
On 2002-03-17 19:19, RichardS wrote:
I have a macro which cycles through a workbook, copies infomraton from each sheet onto a blank sheet, and emails the sheet to an email address on the sheet. It was originally developed in an earlier version of Office and worked fine. Now in Office 2000, a message comes up from Outlook saying that a program is trying to automatically send an email, is this OK, waits 5 seconds before it lets me click OK. I'm aware this is a feature which is trying to prevent spread of viruses, but the Macro sends about 120 emails, and sitting there clicking OK every five seconds sort of defeast the purpose.

TIA

Richard
Richard
Yes this is a problem, and you are correct
in that it is used due to security issues.
It is a security patch

Have a look @ http://www.dimastr.com/redemption

HTH

Ivan
Ivan F Moala is offline   Reply With Quote
Old Mar 17th, 2002, 08:28 PM   #3
Dave Hawley
Banned
 
Join Date: Feb 2002
Posts: 1,582
Default

Hi Richard

I am not familiar with the issue (as Ivan is) but if the default for the message is "Yes" (send the email) try:

Application.DisplayAlterts=False

Application.DisplayAlterts=True


This may or may not work (that's helpful isn't it)


Dave Hawley is offline   Reply With Quote
Old Mar 17th, 2002, 09:03 PM   #4
RichardS
Board Regular
 
RichardS's Avatar
 
Join Date: Feb 2002
Location: Victoria, Australia
Posts: 761
Default

Dave,

I have the Application.Display.Alerts=FALSE. I don't think this feature can be bypassed that easily.

You and Ivan helped me with this project some time ago, and if you remember some of my dumb questions, you will know I haven't a clue what I'm doing.

Ivan, I visited the site you suggested. I gather this is some kind applcation which bypasses some of Outlooks security. I can download it, but all the talk about properties and objects etc is all gobbledegook to me. I am not a programmer. If I download it, do you know what code I would have to insert into my Macro?

Thanks again guys

Richard
RichardS is offline   Reply With Quote
Old Mar 17th, 2002, 09:32 PM   #5
Ivan F Moala
MrExcel MVP
 
Ivan F Moala's Avatar
 
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
Default

If you have downloaded it and installed it
then it is a matter of changing the code you
do have to reference this COMS properties
etc....the code looks straight forward.

Post the code you use and I'll see if I can update this to eference the redemption objects


Ivan
Ivan F Moala is offline   Reply With Quote
Old Mar 17th, 2002, 10:24 PM   #6
RichardS
Board Regular
 
RichardS's Avatar
 
Join Date: Feb 2002
Location: Victoria, Australia
Posts: 761
Default

Haven't downloaded it yet. I am waiting to get approval from my systems manager. He didn't seem to keen on me loading something which circumvents Outlook security. I'll convince him yet!!

Here's the code;

Sub Send_New()
'
' Send_New Macro
' Macro recorded 5/07/2001 by Richard.Staude
'

'
Application.ScreenUpdating = False
Sheets("Sheet Index").Select
Application.DisplayAlerts = False
Dim counter As Integer
For counter = 1 To ActiveWorkbook.Sheets.Count
' Check to see if email address in cell E1 on current sheet
If Sheets(counter).[E1] <> "" Then
Workbooks.Add Template:="Workbook"
ActiveSheet.PageSetup.Orientation = xlLandscape
ActiveWorkbook.SaveAs Filename:="C:Send Budget.xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Windows("Report.xls").Activate
Application.Goto Reference:="Print_Area"
Selection.Copy
Windows("Send Budget").Activate
Range("A1").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Selection.Columns.AutoFit
Windows("Report.xls").Activate
Range("E1").Select
Application.CutCopyMode = False
Selection.Copy
'Copy email address to Send Budget
Windows("Send Budget").Activate
Range("A52").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("A1").Select
'email Send Budget to email recipient
ActiveWorkbook.SendMail Recipients:=Range("A52")
ActiveWorkbook.Close SaveChanges:=False
End If
ActiveSheet.Next.Select
Next counter
Sheets("Sheet Index").Select
Application.DisplayAlerts = True

End Sub

Thanks

Richard
RichardS is offline   Reply With Quote
Old Mar 17th, 2002, 11:26 PM   #7
Ivan F Moala
MrExcel MVP
 
Ivan F Moala's Avatar
 
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
Default

Quote:
On 2002-03-17 21:24, RichardS wrote:
Haven't downloaded it yet. I am waiting to get approval from my systems manager. He didn't seem to keen on me loading something which circumvents Outlook security. I'll convince him yet!!

Here's the code;

Sub Send_New()
'
' Send_New Macro
' Macro recorded 5/07/2001 by Richard.Staude
'

'
Application.ScreenUpdating = False
Sheets("Sheet Index").Select
Application.DisplayAlerts = False
Dim counter As Integer
For counter = 1 To ActiveWorkbook.Sheets.Count
' Check to see if email address in cell E1 on current sheet
If Sheets(counter).[E1] <> "" Then
Workbooks.Add Template:="Workbook"
ActiveSheet.PageSetup.Orientation = xlLandscape
ActiveWorkbook.SaveAs Filename:="C:Send Budget.xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Windows("Report.xls").Activate
Application.Goto Reference:="Print_Area"
Selection.Copy
Windows("Send Budget").Activate
Range("A1").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Selection.Columns.AutoFit
Windows("Report.xls").Activate
Range("E1").Select
Application.CutCopyMode = False
Selection.Copy
'Copy email address to Send Budget
Windows("Send Budget").Activate
Range("A52").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("A1").Select
'email Send Budget to email recipient
ActiveWorkbook.SendMail Recipients:=Range("A52")
ActiveWorkbook.Close SaveChanges:=False
End If
ActiveSheet.Next.Select
Next counter
Sheets("Sheet Index").Select
Application.DisplayAlerts = True

End Sub

Thanks

Richard
Hi Richard

Your code is using the excel senmail command
Not sure about using the Redemption here
without rewritting your code to access Outlook.......If you like I can rewrite
using Outlook directly and bypassing senmail

Possible to email me your book....If data
is sensitive then ust put junk data in
but I'll need the format of the sheets etc


Ivan
Ivan F Moala is offline   Reply With Quote
Old Mar 17th, 2002, 11:42 PM   #8
RichardS
Board Regular
 
RichardS's Avatar
 
Join Date: Feb 2002
Location: Victoria, Australia
Posts: 761
Default

File sent. It's a bit of a monster (6.2Mb). Thanks for the time Ivan
Regards
Richard

RichardS is offline   Reply With Quote
Old Mar 17th, 2002, 11:53 PM   #9
Ivan F Moala
MrExcel MVP
 
Ivan F Moala's Avatar
 
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
Default

Quote:
On 2002-03-17 22:42, RichardS wrote:
File sent. It's a bit of a monster (6.2Mb). Thanks for the time Ivan
Regards
Richard

Thanks Richard
Please note ....I'll do the best i can TIME wise...just bear in mind that I do have
other projects...BUT i'll endeavour to
get this done as it gives me an oportunity
to look @ the Redemtion code...


Ivan
Ivan F Moala is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 10:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes