Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2012, 10:25 AM
dawsonh2002 dawsonh2002 is offline Conditionally Email People Based on Values in Fields Windows XP Conditionally Email People Based on Values in Fields Office 2010 32bit
Novice
Conditionally Email People Based on Values in Fields
 
Join Date: Dec 2012
Posts: 2
dawsonh2002 is on a distinguished road
Smile Conditionally Email People Based on Values in Fields

So we have a .csv file that has
EmplID
Last Name, First Name
Email Address
Total Weeks Worked Previous Pay Period


Total Weeks Worked This Pay Period

I'd like to create a mail merge that only sends the email out to those people when their weeks worked in the previous pay period was LESS THAN this pay period.

Is there an easier way to do this than checking off the boxes in a mail merge.

THANKS FOR ANY ADVISE!
Reply With Quote
  #2  
Old 12-11-2012, 03:35 PM
macropod's Avatar
macropod macropod is offline Conditionally Email People Based on Values in Fields Windows 7 64bit Conditionally Email People Based on Values in Fields Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

In that case, use a SKIPIF field that tests the values of the two fields. For example:
{SKIPIF{MERGEFIELD Total_Previous}={MERGEFIELD Total_Current}}
where 'Total_Previous' and 'Total_Current' are the field heading names in your csv file.

Note: The field brace pairs (ie '{ }') for the above example are created in the body of the document via Ctrl-F9 (Cmd-F9 on a Mac) - you can't simply type them or copy & paste them from this message.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-12-2012, 12:11 PM
dawsonh2002 dawsonh2002 is offline Conditionally Email People Based on Values in Fields Windows XP Conditionally Email People Based on Values in Fields Office 2010 32bit
Novice
Conditionally Email People Based on Values in Fields
 
Join Date: Dec 2012
Posts: 2
dawsonh2002 is on a distinguished road
Default Your Awesome!

I'm glad you added the "NOTE:" That really solved some potential issues. I'll have to buy you a coke some day. Maybe throw in a cookie as an added bonus.

Seriously though, THANK YOU. I was using macros in excel to send this thing off before and it was a annoying having to click "send" on 30+ emails.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
change values based on cell ubns Excel 1 05-21-2012 06:28 PM
Change values in cells based on criteria SaneMan Excel Programming 2 02-02-2012 07:58 AM
Conditionally Email People Based on Values in Fields I want to send email to large number of people, with different addressing sanketmlad Outlook 1 10-06-2011 09:32 AM
dynamic charts based on mail merge fields jwajehee Mail Merge 0 10-05-2011 09:47 AM
Fields controlled by List box values farfromapro Word 0 02-11-2009 02:19 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft