Results 1 to 14 of 14

vba/code to bring up msg box when critaria is met that contains data from comment box

Threaded View

  1. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: vba/code to bring up msg box when critaria is met that contains data from comment box

    I've written a function that works with this alteration in Column H:

    =_xlfn.IFERROR(IF($A2="","",GetComment(MATCH($A2,'COMBINED MEMBERS'!$A$1:$K$11700,0))),"NOT FOUND")
    Function GetComment(r As Long) As String: Dim C As Range, T As Comment 'XWarlock
    Dim wc As Worksheet, ws As Worksheet, S As String
    Set wc = ActiveWorkbook.Worksheets("COMBINED MEMBERS")
    Set ws = ActiveWorkbook.Worksheets("BLANK SIGN IN SHEET")
    For Each C In wc.Range("A" & r & ":C" & r)
    If Not C.Comment Is Nothing Then
    Set T = C.Comment
    S = T.text: S = Mid(S, InStr(1, S, ":") + 1, Len(S))
    S = Right(S, Len(S) - 1): S = Left(S, Len(S) - 1)
    Exit For: End If: Next
    GetComment = S
    End Function
    It's not a pop up and may not be what you want.
    Last edited by xladept; 09-26-2013 at 05:28 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA for Searching & Display record with Match Critaria
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-09-2013, 06:57 AM
  2. [SOLVED] a vba code to bring the same value of the save refrence
    By funtastic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2012, 02:17 PM
  3. code to bring up the save as window
    By mike.richards in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2009, 09:29 PM
  4. Code to bring my company up to date!
    By KJ in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-23-2005, 08:05 AM

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