• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Sending Mails from Excel|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Sending Mails from Excel|VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosSending Mails from Excel
sp_PrintTopic sp_TopicIcon
Sending Mails from Excel
Avatar
Kaushik C

New Member
Members
Level 0
Forum Posts: 1
Member Since:
September 8, 2020
sp_UserOfflineSmall Offline
1
September 8, 2020 - 2:06 am
sp_Permalink sp_Print

Hi,

Hope everyone is fine.

My question is. Say there are the below five columns

docket no User dept. status Activity date activity duration
MJ/123 A standing committee 05-07-2020 64
MJ/421 B Technical with user dept. 05-08-2020 33
MJ/456 A technical with vendor 05-09-2020 2
MJ/504 C pp signing due 07-09-2020 0
MJ/512 A Technical with user dept. 02-09-2020 5

Say in sheet two I have the list of email id's against each user dept.

Now what will be the code for each occurence of cell values.

Say "status" is standing committee and depending on the values of the column "activity duration" mail ids will be sent.

now the activity duration column has the function =today()-D1

If D1 is between 5 and 10 and status = standing committee then email will be sent to the user dept. that is mentioned in B1

If D1 is greater than 10 and status is "standing committee" again mail will be sent automatically to the person that is mapped in sheet 2 against each user dept.

 

Awaiting your kind reply.

Kaushik C

Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
2
September 8, 2020 - 4:20 am
sp_Permalink sp_Print

VBA and sending emails has been cover loads of times on this forum, i would suggust reading through the blogs

https://www.myonlinetraininghu.....th-outlook

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
3
September 8, 2020 - 10:01 am
sp_Permalink sp_Print

Hi Kaushik,

As Purfleet said this has been covered many times, did you use the Search function at the top of the site?  Searching for 'email' in the topic title in the VBA forum returns 35 posts

Search VBA Forum for Email

like this

https://www.myonlinetraininghu.....ough-excel

https://www.myonlinetraininghu.....ell-values

https://www.myonlinetraininghu.....rent-sheet

Read through those to see if they already answer your question.  If you get stuck after trying to write the code then please post your workbook here.

Regards

Phil

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Mynda Treacy, s Ramchandran, Kristine Storti, Shanna Henseler
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27237

 

Member Stats:
Guest Posters: 49
Members: 31889
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.