+ Reply to Thread
Results 1 to 4 of 4

code to automatically convert cell text to comments

Hybrid View

  1. #1
    Registered User
    Join Date
    10-02-2017
    Location
    noida
    MS-Off Ver
    2016
    Posts
    102

    Post Re: code to automatically convert cell text to comments

    Quote Originally Posted by skywriter View Post
    try this.

    private sub worksheet_change(byval target as range)
    'works on a1:a10, change your cells to your desired range.
    If target.cells.count > 1 then exit sub
        if not intersect(target, range("a1:a10")) is nothing then
        application.enableevents = false
            target.clearcomments
            target.addcomment target.text
            target.clearcontents
        application.enableevents = true
        end if
    
    end sub
    right click on the tab you want this code to run on and choose view code, then paste in the code.
    The ranges are set for a1:a10, change this to suit your needs.
    how to paste this code in macro option and change the range to (s3:s35) why it is not working ???? Fix it please
    Attached Images Attached Images

+ 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. Automatically open a comments box when certain text is entered into a cell
    By dfuller29 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2014, 05:46 PM
  2. Macro to automatically convert prt scr image-based text to real text in cell
    By jasonfromchico in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2014, 02:27 PM
  3. Code That will Automatically convert a cell's text to Capital...
    By Mhz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2007, 10:57 AM
  4. UDF code to find specific text in cell comments, then average cell values
    By bruch04 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2005, 06:10 PM
  5. [SOLVED] Can Comments be automatically converted to text cell values?
    By tomdog61 in forum Excel General
    Replies: 2
    Last Post: 01-23-2005, 06:06 PM

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