Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 29th, 2003, 04:26 PM
Registered User
 
Join Date: Dec 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending an automated email

Here's the problem.
Every week i need to send a .xls file via email.
Using VB, can I create a macro or something to automatically email my excel report?
Thanks

 
Old December 30th, 2003, 05:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

I recommend that you should convert the funciton to run on the server as either a VBS batch file using Windows Scripting Host (see http://www.greggriffiths.org/webdev/wsh/ for more) or the Unix equiverlant depending on your host.

 
Old January 2nd, 2004, 12:28 PM
Registered User
 
Join Date: Dec 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

THanks a bunch

 
Old January 2nd, 2004, 12:37 PM
Registered User
 
Join Date: Sep 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to RogerWaters
Default

There is a VBA command that will email a spreadsheet, it however needs an input to allow the macro to send the email as security patches now block automatic email sends.

ActiveWorkbook.SendMail Recipients:="person@test.co.uk", Subject:="Mileage report"

Roger Waters
 
Old January 2nd, 2004, 05:00 PM
Registered User
 
Join Date: Dec 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

uhm, where do i insert that code/?
forgive me. im a newbie






Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated Email from Access Database ScubaBoy80 Access 2 June 18th, 2007 08:37 AM
Automated email ashik112 Classic ASP Professional 3 March 14th, 2007 11:11 PM
Sending an automated mail pramos.21d ASP.NET 1.0 and 1.1 Professional 1 July 3rd, 2006 09:32 AM
Sending email maitias C# 2005 2 February 17th, 2006 11:24 AM
Re: Database automated email spinout SQL Server 2000 4 March 5th, 2005 10:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.