+ Reply to Thread
Results 1 to 4 of 4

modify code to add comment when cell in range have specific text or partial text

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    modify code to add comment when cell in range have specific text or partial text

    Good morning

    im looking to make code that will add comment if any cell in range have specific text {IIN}
    i already found the following code that can add comment if cell value is larger than column


    the message i need to add to comment if IIN is {Please check data for}


    my range of cell is A2:I125
    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    11-16-2016
    Location
    NC
    MS-Off Ver
    2007, 2019
    Posts
    86

    Re: modify code to add comment when cell in range have specific text or partial text

    Please Login or Register  to view this content.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: modify code to add comment when cell in range have specific text or partial text

    PHP Code: 
    Sub TEST()
    For 
    Each Rng In Range("A2:I125")
    If 
    InStr(1Rng"IIN") > 0 Then
    Rng
    .AddComment "Please check data for"
    End If
    Next
    End Sub 
    Quang PT

  4. #4
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: modify code to add comment when cell in range have specific text or partial text

    thank you so much for your support
    work perfect

+ 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] Need help calculating Averages based on specific text & partial text
    By spapay in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2021, 01:02 PM
  2. [SOLVED] Modify VBA code to paste report as text into specific columns in a Worksheet
    By Franky alta in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-02-2015, 11:09 AM
  3. [SOLVED] VBA to Find Specific Text, then Copy range to next open cell under specific text
    By Remotruker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2015, 10:59 AM
  4. Replies: 2
    Last Post: 08-05-2013, 07:32 PM
  5. if match partial text from a cell to a range copy row
    By Shansy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2013, 02:35 AM
  6. How to modify the following code to copy comments containing specific text
    By sureng19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2010, 12:15 PM
  7. please help Need VBA code that searches for partial text in a cell
    By Shani in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-13-2006, 11:25 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