+ Reply to Thread
Results 1 to 9 of 9

Data Validation Paired with VBA Email Macro

Hybrid View

murp5972 Data Validation Paired with... 07-02-2015, 11:01 AM
humdingaling Re: Data Validation Paired... 07-02-2015, 10:22 PM
murp5972 Re: Data Validation Paired... 07-03-2015, 10:43 AM
humdingaling Re: Data Validation Paired... 07-05-2015, 08:38 PM
murp5972 Re: Data Validation Paired... 07-06-2015, 09:36 AM
humdingaling Re: Data Validation Paired... 07-06-2015, 11:28 AM
murp5972 Re: Data Validation Paired... 07-06-2015, 11:47 AM
humdingaling Re: Data Validation Paired... 07-06-2015, 08:07 PM
murp5972 Re: Data Validation Paired... 07-07-2015, 10:53 AM
  1. #1
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Data Validation Paired with VBA Email Macro

    if i'm understanding what you trying to do

        Dim Found As Range
        
        EmailTo = Worksheets("E-mail Sheet").Range("B26")
        
        Set Found = Sheets("Current Clients").Columns("C").Find(What:=Sheets("E-mail Sheet").Range("A26").Value, _
            LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False)
                                                   
        If Not Found Is Nothing Then
            If IsEmpty(Found.Offset(, -2)) = False Then
                If MsgBox(Range("A26").Value & " has already been sent email reminder on " & Found.Offset(, -2).Value & vbNewLine & "Do you want to continue?", vbYesNo) = vbNo Then
                    Exit Sub ' stop macro if user selects No
                End If
            End If
        End If
    This codes does not check the date sent...only that there is a date
    i think you would need another if statement to check the date if you want say within last 10 days or something
    Attached Files Attached Files
    Last edited by humdingaling; 07-05-2015 at 08:45 PM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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] Email Validation Macro
    By DrNo1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-26-2023, 12:43 AM
  2. Data Validation Paired with VBA Email Macro
    By murp5972 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2015, 11:38 AM
  3. Run formulae on paired data
    By batman98347 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-22-2015, 05:02 PM
  4. Need Vlookup/If/Macro/? to Return Multiple Paired Matches
    By odbal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-19-2014, 05:40 PM
  5. 2003 Validation Dependencies email macro
    By andtheboat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2010, 11:55 AM

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