Macro For Sending Emails :: Pop Up Confirm And Cancel

Oct 13, 2007

I'm using Excel 2002 on and XP machine. I am creating a spreadsheet to track a work plan.

Column A: Name
Column B: Date
Column C: Time
Column D: YES
Column E: No
Column F: New Date
Column G: New Time

What I'm looking to do is input click able buttons in Columns D: Yes and Column E: No.

When a user clicks on YES, a pop up window should appear with the data in columns A,B,C.

The p0p-up should contain CONFIRM and CANCEL buttons.

Asking the user if they want to confirm the date and Time.

If CONFIRM is clicked Excel should then send an email to me and the user to say that the work schedule has been confirmed.

If CANCEL is clicked the pop-up window closes.

Secondly if the user clicks NO, a pop-up window should open with two free text boxes. One for Proposed date and One for Proposed time. And again 2 buttons for Confirm and Cancel.

If Confirm is clicked then Excel should record the data entered in the free text boxes into Column G and Column H and send emails to me and the user with the Proposed date and Time Data.

If CANCEL is clicked the pop-up window closes.

View 9 Replies


ADVERTISEMENT

Macro For Sending Emails To Persons Listed In A Column

Mar 30, 2008

I have attached an excel sheet which i wanted to write macro as an attachment. .

when I run a macro an email has to be sent to each persons listed in column A with Voucher # in the subject line and URL in the body of the message after the URL, the body of the message will remain same for all the emails:

so I have typed the body of the message in 2nd sheet:

View 14 Replies View Related

Sending Emails From 2003

May 9, 2009

I have a macro which uses Outlook to send an email. I know it's not possible to over-ride the annoying 'Another program is trying to send an email....' dialogue box but I wonder if there is a way of exiting sub if the user clicks No on that dialogue box?

View 7 Replies View Related

Sending Sheets To Emails

Jan 21, 2010

I'm trying to send sheets to an email.

My code up to now saves a copy of the sheet in a file, and I send that file out.

Unfortunatly when I run my macro it ends with the email opening, the file being attached, and I need to input the email adress. Also, i need to automatically overwrite what is in the folder.

My code looks nothing like the one on Ron's tutorials.

View 8 Replies View Related

Sending Emails Automatically

Jul 9, 2013

I want to run a macro dailly where he is going to look in a specific column and based on that value he needs to send emails based on several other cells.

It is a contract database. So for example in:

column A = Country
B = Supplier
C = Days untill end
D = SPOC
E = Manager

What do i want that when i run the macro he looks at column C and where-ever he finds "90" he send automaticly an email to the personnes in column D and E.

In subject i want to see the name of the supplier.

In the email i want to put a text like :

Hello,

Hereby i want to inform you that the contract "Supplier" is going to expire.

Please take the necessary action!,

Also i want to do the same thing when it hits the "30" with other text but i guess that it easy to do when the "90" works

View 9 Replies View Related

Generating Emails From Excel Without Sending?

May 15, 2012

I have a spreadsheet that has a command button which generates an email in outlook express, which until today was 100% fine no problems at all.

However I now need it to generate an email (with the email address and subhject line completed) but not to send it - I've tried everythign I can think of but with no joy

Code below:

Private Sub CommandButton6_Click()
If Range("I88") = 1 Then
MsgBox "You have not completed all the details.", vbCritical
Else

[Code]....

View 1 Replies View Related

Excel 2007 :: Sending Emails With Attachments?

Aug 16, 2012

MY VBA code failed and sucks---

I have a Excel spreadsheet with codes, names, and emails then I have a folder that have XML files with codes that should match and be sent via Outlook 2007 as an attachment.

Example:

Excel sheet
PHA Code
First
Last
email

ALxx2
Jon
Smith
Jon Smith@xyz.com

[code]....

XML files reside in the following folder:

C:UsershomecomputerDesktopTESTxml files

ALxx2_06122012.xml
ALxy10_06122012.xml
ALzz12_06122012.xml

BTW- I have about 3,000 emails to send.

View 7 Replies View Related

Sending Individual Emails To List Of People

Nov 25, 2013

I am look for a way to send out an individual email to a list (Column A) in my excel spreadsheet.

I need to send out an email with a signature in to a lot of addresses.

View 2 Replies View Related

Sending Individual Emails Using Macros With Attached Excel Files?

May 5, 2014

I want to send emails to about 12 - 14 people with various different excel spreadsheets using macros. This is after I have finished running a macro that splits a report into various departments and needs to be emailed to the heads of each department. I want to be able to attach each ecel report to its owner and have the macro email it for me once the reports have been generated.

View 3 Replies View Related

Dialog Box To Confirm Running Macro

Oct 18, 2005

i have a macro button designed to wipe all user entered data into a workbook. I want it so you cant accidently press (as you cannot undo the operation). Anyway for making a dialog box appear asking if you are sure to wipe date, with a yes or not option.. no will obviously abort the macro.

if possible, another box to come up asking if you want to save the file first with a different file name (comes up with a save as box).

this is the code so far:

Sub MonthCleaner()
'
' MonthCleaner Macro
' Macro recorded 17/10/2005
'

Application.ScreenUpdating = False

Range("A10:G10").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("H10").Select .........

View 9 Replies View Related

Confirm Prompt Before Macro Runs

Nov 20, 2006

I have a button. When pressed, it runs a macro. Instead, after pressing the button, I would like the user to confirm to run the macro and display some info about it. This is to make sure the user does not accidentally run the wrong macro (button). I just need a prompt box, with a line info, and the two choices YES and NO. If NO is selected, nothing happens. If YES is selected, macro continues.

View 6 Replies View Related

Confirm Selection Before Running Macro

Oct 5, 2007

I have an excel form where users can input modifications by selecting a range and then pressing a command button to input a value in the selection.

My goal is: to restrict the location where a user can select a range of cell and then execute the macro . The cells where the user can use the macro are merged and in my code, I used the address as show in the address bar in excel for their location. If the user select a cell that is not permitted, a message box is displays and exits the code.

If (Selection.Address <> Range("AE7").Address) _
Or (Selection.Address <> Range("BM7").Address) Then
Msgbox ("Wrong location") Else

For some reason it doesn't work since the message box appears even if I am within the permitted locations.

Note: AE7 is the first cell of a merge, same as with BM7

View 9 Replies View Related

After Macro Saves File Msgbox To Confirm Save As Completed

Jan 18, 2014

I have a macro which works well. All it does is save a file to a specified location on my network. However, after a file is saved there is no prompt telling the user that the file was saved successfully leaving them wondering whether the macro actually worked.

VB:
Public Sub SaveAs() ThisFile = Range("X2").Value
ActiveWorkbook.SaveAs Filename:="legdcAudits" & ThisFile & ".xlsm", FileFormat:=52
End Sub

View 1 Replies View Related

Macro - Hold View And Avoid Confirm Delete Message

Feb 11, 2009

1. I can't remember it, but I know there is a command so that the view hold and that the selected tabs and cells does not show and the same view remains until the "unhold" is called in the macro. THEN the view is updated. What is this command again? Could not find it...

2. The macro needs to delete tabs at the click of a button (easy part) but for each deletion, a message appear:

Data may exist in the sheet selected for deletion. To permanently delete this data, press Delete. Is there a way to prevent the message from popping out when the macro is executed?

View 2 Replies View Related

Build Macro Which Emails Specific Records?

Jan 13, 2013

I am trying to build a macro using two files. The file 'master data.xls' has student details in a table containing 10 column heads as attributes (roll, name, address, email etc). The file 'Student Profile.xls' has been formatted to show individual student details in the form of a report. I want to prepare a macro such that each time I enter a new record in the "master data.xls", the data from new entry is printed in the format as given in "Student Profile.xls" as a pdf file which is saved with a file name defined by "(roll number) (First Name) (Last Name)" and the same is emailed to the student's email ID as specified in the "master data.xls" with the mail containing an address to the student name (ex: Dear Tom) and a standard text message in the body.

View 1 Replies View Related

Convert Macro To Send Emails Automatically?

Feb 3, 2013

I have attached a sample workbook. The workbook already has a macro that can send an email after working out if the date is overdue. I have put a button on the screen, but I would like to remove the button and automate it, I got the initial macro from,( whoever initially put it together) but I have since made some changes to it regarding how the message displays etc. i, 15 or i, 16 in the macro means, There isn't anything in column i and I can't work out the relevance of it.

View 1 Replies View Related

Excel Macro That Will Send Emails From Outlook

Feb 13, 2014

I got this VBA code from a colleague which he uses when sending multiple emails from Outlook. This code sends email based from the last cell. What I would like to do is send emails to all the recipients listed in column C. Column A will be the sender and column B will be email subject. Attached is the sample file.

[Code] .....

Send email.xlsm‎

View 2 Replies View Related

Macro To Cancel Startup Messages

Jun 29, 2007

I have a Macro that opens numerous excel files.

What code do I require to cancel the startup message?

ie. The message that displays "Disable / Enable Macros" (security setting cannot be changed, so message is always displayed).

Plus I then have some startup message boxes which I manually click OK to continue, but how do I cancel this messages using VBA Code?

View 9 Replies View Related

Pressing Cancel Continues The Macro

Apr 3, 2007

the title should read... pressing cancel in inputbox, continues the macro... In theory, pressing the cancel button should stop the macros, but it continues as if pressing ok button...

View 3 Replies View Related

Adding Option To Cancel Macro With MsgBox?

Feb 20, 2014

The below code works well. However I would like to give the users an option to opt out of running the code when the message box appears.

Code:
Sub delete_sheets()
Beep
MsgBox "This will delete All Sheets but the active sheet"

*****this is where I would like to use an additional message box or include it in the above message box an option for the user to cancel this code****

Range("XA1") = ActiveSheet.Name
ActiveSheet.Name = ("Delete_Sheets")
Dim ws As Worksheet
Application.DisplayAlerts = False
For Each ws In Worksheets
If Not ws.Name = "Delete_Sheets" Then ws.Delete
Next ws

[code]....

View 1 Replies View Related

Stop, Cancel OnTime Event Macro

Nov 11, 2006

I have a real simple question about what command to enter in order to stop a macro. All the macro does is "press the F9 key" every second. I use a button to start the loop but I am unable to find a way to use another button to stop the process. Ive copied my macro below:

Sub Go()
Calculate
Application .OnTime Now + TimeValue("00:00:01"), "Go"
End Sub

Private Sub CommandButton1_Click() "Go Button"
Application.OnTime Now + TimeValue("00:00:01"), "Go"
End Sub

Private Sub CommandButton2_Click() "Stop Button"
'????????????????????????
End Sub

View 2 Replies View Related

How Do I Get Past A Delete, Cancel Button During A Macro Loop?

Aug 12, 2009

I would choose to select the delete button. I've created a new worksheet within a workbook, insert text and formatting, and copied to a specific place in the active worksheet. Everything works well except 1. there is a LOT of coding because I recorded the macro and 2. the delete message pops up for every files the macro manipulates. I have to click "delete" about 60 times throughout this macro and would love to be able to let it click its own delete button!

View 6 Replies View Related

Macro Running Very Slow - Cell (press Esc To Cancel)

Dec 10, 2009

I have written some very basic code to format a report in excel. When I run the code it take a very long time to execute and I receive the following error message at the foot of the page:

Cell (press esc to cancel)

Annoyingly I have had this error before and found the solution on the web but can't remember where. If memory serves my right I deleted some temp files from a specific location on my hard drive?

View 3 Replies View Related

Macro For Sending Mail With Attachment From Outlook

Jan 17, 2013

I need to send 25 mails on daily basis to my client. All fields in mail are common except recipient and attachments. Every mail has 3 excel attchments. So i created a macro in excel which sends mail as per my requirement but picks up only one attachment from the path i have mentioned in the vb code. Whole macro is running perfectly. I just want to know what modification i should do in that code to attach more than one excel file to the mail from the path i have given. Below is the code:

Sub macro1()
Dim sFolder As String
Dim Folder As Object
Dim file As Object
Dim fso As Object

[Code]....

View 1 Replies View Related

Excel Macro (VBA) Sending Active Worksheet In PDF By Outlook

Mar 17, 2014

I find out a code to create a PDF (with opening the Save As dialog box) from an active worksheet, but I can't find out how to send this PDF by e-mail (Outlook). The code is working till the words 'Set OutApp'.

Just what I want is to send the active worksheet as PDF (as attachment) by email (Outlook). Here the present code.

Code:
Sub SendPDF()
'
' SendPDF Macro
'
Dim OutApp As Object
Dim OutMail As Object
Dim v As Variant
v = Application.GetSaveAsFilename(Range("E2").Value, "PDF Files (*.pdf), *.pdf")

[code]....

View 9 Replies View Related

Macro To Generate Outlook Emails With Data / Information From Multiple Rows Of Data?

Apr 30, 2014

I am attempting to create a macro to generate emails based on data in a sheet. The goal is to run the Macro, and have it generate emails to send to contractors letting them know what they are going to be paid. For instance:

Name in Column J
Email in Column L
Memo in Column N
Balance in Column T
Due Date in Column P
Week Ending Date in Column H

Now what I would like to happen, is to tie a macro into a button that will create the email as follows:

To Field: Email address from Column L
Subject: "Company Payment Remittance Payment Date *Date from Column P*"
Body: Hello *Name from Column J*,
For *WE Date in Column H* you will be paid *Balance from Column T* for the time worked of *Memo in Column N*

Now the tricky part is that I want the email to contain all line items for each email address. So instead of sending one email per line, have the macro automatically put all of the information that needs to be sent to one email address into the message. I don't know if that is possible, but it sure would make my life easier if it was.

I have attached a sample workbook of the data that will be used

Example Workbook for Email Macro.xlsx

View 1 Replies View Related

Macro To Send Multiple Emails To Multiple Recipients With Standard Message As Per Spreadsheet Table

Feb 18, 2014

get the code for sending multiple emails as per the spreadsheet list. Assume the spreadsheet has 100 line items and each columns specifies the name of the person, value, recipient email address ("To" and "CC") and sender name.

And the Body of text is :

Hi "Name of the person" Please find the value of "Value" to be paid for the moth of xxx and kindly let me know for further clarification.

View 1 Replies View Related

How To Confirm Whether Particular Value Exists In Range

Jun 4, 2012

How I can confirm whether a particular value exists in a range. i.e.

ABCD11Yes/No22

Does the Number 4 exist in the range

A1:A8?334455667788

View 3 Replies View Related

Search And Confirm Function Setup?

Aug 19, 2013

I have to do a project, but I'm not really sure how to go about it. Here's my problem: I have about 200 stock ticker symbols already given(ie. AAPL, MSFT, NEE, etc...), and i have to create an excel file where i would copy/paste or enter in another set of stock ticker symbols and would give me back the answer if any of the newly entered symbols match the ones i already have(either in form of 1 or 0, YES or NO etc...).

View 4 Replies View Related

Confirm Save As - Change Default?

Jan 5, 2014

Whenever updating an Excel file and saving it as a new file, a "Confirm Save As" window appears. The default is "NO" (No is Highlighted). Conversely, in MS Word, the default is "Yes" (and, YES is highlighted). I would like to change the default from NO to YES in Excel.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved