+ Reply to Thread
Results 1 to 2 of 2

VBA to change cell comment based on cell value

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    VBA to change cell comment based on cell value

    I have a data validated cell where users can select from 5 options for the cell value. I'd like to know how I can change the cell comment based on what the users selects. I'd like to know if in doing this, I can also control the size of the comment displayed.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: VBA to change cell comment based on cell value

    You'd need a Worksheet Change Event handler monitoring the cells(s) with Data Validation and, when the cell value is changed, probably lookup the DV list and return a matched comment.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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] Change Command Button name/comment based on cell value
    By DHFE in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-19-2015, 06:29 AM
  2. [SOLVED] VBA code that will make cell value a comment.The cell value will change every now and then
    By melanie castro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2015, 02:53 AM
  3. [SOLVED] Vba to make new text from cell change post at beginning of cell comment not the end
    By M38512P in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2015, 11:23 AM
  4. VBA to Format cell based on the cell comment
    By Mohammedimran in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2014, 08:27 AM
  5. change color background in cell comment
    By ilkamalo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2009, 08:12 AM
  6. Replies: 1
    Last Post: 09-27-2008, 05:20 PM
  7. I want to change comment printing cell 3 to whats in cell 3
    By Lonny and Rinda in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2006, 03:40 PM

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