+ Reply to Thread
Results 1 to 2 of 2

Need help in tweaking VBA Macro

  1. #1
    Registered User
    Join Date
    04-07-2014
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2010
    Posts
    1

    Lightbulb Need help in tweaking VBA Macro

    Hi ,

    I have this VBA script from rondebruin . In summary this script looks at the column which has either "yes" or "no" and sends a mail to ppl whose column says "no"

    Here is the example excel activeworksheet.

    Name MailID Amount paid
    vijey abc@gmail.ocm 100
    Everon xyz@gmail.com 0

    I wanted the script to send a mail to the person whose column reads 0. Only the Row of the person reading 0 will be sent to the particular person.


    The code below is what i am trying to tweak and there is one line of interest here:--

    ORIGINAL LINE

    Please Login or Register  to view this content.
    This line of code works fine but sends emails to each person irrespective of the column value.

    TWEAKED LINE

    Please Login or Register  to view this content.
    This tweaked code is not working.

    Can you please let me know how to tweak this line so that emails can be sent to only people with the triggered Column value.

    Entire code:--
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 04-10-2014 at 12:13 PM. Reason: Added Code Tags

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Need help in tweaking VBA Macro

    First administration: open forum rules http://www.excelforum.com/forum-rule...rum-rules.html , read about code tags and edit your post using it.

    Now merit:

    If this numerical value is in next column then try
    Please Login or Register  to view this content.
    is really mail in column B? the code looks like it checks column A ?

    assumning column B for e-mails and C for values you coukd also try:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Tweaking an Excel 2003 macro
    By nharpaz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2013, 05:03 PM
  2. Tweaking of Macro Code to sort rows
    By swoosh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2012, 02:14 PM
  3. 'SEARCH' Macro Needs Some Tweaking
    By gnrjess in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2012, 12:34 PM
  4. Tweaking an Outlook email Macro in Excel
    By John V in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2006, 05:25 PM
  5. [SOLVED] Tweaking a Macro to Count Words
    By PGiessler in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2006, 07:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1