+ Reply to Thread
Results 1 to 6 of 6

Need vba code

  1. #1
    Registered User
    Join Date
    04-10-2015
    Location
    tirupur
    MS-Off Ver
    ms 2007
    Posts
    7

    Thumbs up Need vba code

    Hi frnds .,

    i need vba code to find text "pass" in any of cell range in "c3:c16" and give pop up message by mentioning student name which is next cell of displaying text cell ...



    For example : If in " c10 " if text displayed as "pass" then pop up message should come name of student in "d10" cell ...

    And if one or more text displayed as " pass " in given cell range then one by one alert pop up msg should come ....


    Thanks in advance ....

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Need vba code

    try this
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hi ! Try this !


    A VBA demonstration as a beginner starter :

    PHP Code: 
    Sub Demo1()
        
    Filter([TRANSPOSE(IF(C3:C16="pass",D3:D16))], FalseFalse)
        If 
    UBound(V) > -1 Then MsgBox Join(V", ")
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

  4. #4
    Registered User
    Join Date
    04-10-2015
    Location
    tirupur
    MS-Off Ver
    ms 2007
    Posts
    7

    Re: Hi ! Try this !

    Quote Originally Posted by marc l View Post

    a vba demonstration as a beginner starter :

    PHP Code: 
    sub demo1()
        
    filter([transpose(if(c3:c16="pass",d3:d16))], falsefalse)
        if 
    ubound(v) > -1 then msgbox join(v", ")
    end sub 
    ► do you like it ? ► so thanks to click on bottom left star icon « add reputation » !
    thnx man ... Thanks for ur help ..... Its working ....... ,
    while running the code it shows msg box for condition .... But if the data changes in dynamic in live if newly text "pass" appears msg box not showing ....

  5. #5
    Registered User
    Join Date
    04-10-2015
    Location
    tirupur
    MS-Off Ver
    ms 2007
    Posts
    7

    Re: Need vba code

    Quote Originally Posted by nickyc View Post
    try this
    Please Login or Register  to view this content.
    thanks for considering & ur help ...
    But code doesnt work for me ..... No error in code but msg box not showing ....

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Hi ! Try this !


    As both codes well work …

    Quote Originally Posted by udhaytirupur View Post
    But if the data changes in dynamic in live if newly text "pass" appears msg box not showing ....
    But that was not explained in the initial post ! So include the code in the 'Worksheet_Change' event in the worksheet module …

+ 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] Code to display text & code in a combo list, but display only code when selected
    By kdestef1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2019, 06:07 PM
  2. [SOLVED] Need help with VBA code. Tons of code seperated in two, second part of code doesn't work.
    By FragaGeddon in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 11-30-2015, 11:46 AM
  3. [SOLVED] Pattern Building VBA Code - Working code, would like to use cleaner code
    By Benisato in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-10-2015, 03:05 PM
  4. [SOLVED] Excel VB code. Message pops up while code running asking question. Code must not wait.
    By Heinrich Venter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2014, 06:10 AM
  5. [SOLVED] VBA code for assigning a numeric code to text; then numeric code populates table
    By cteaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2014, 08:01 PM
  6. Replies: 2
    Last Post: 03-09-2013, 04:30 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