Results 1 to 12 of 12

Add coments VBA

Threaded View

  1. #1
    Registered User
    Join Date
    04-02-2020
    Location
    Bratislava
    MS-Off Ver
    2016
    Posts
    80

    Add coments VBA

    Hi,
    I am trying to make a macro that insert automaticlly a comment if a cell match a certain condition. If there is a cell with the value "o" it should appear a comment box.
    So far I got this:
    Sub EjemploComentario()
    
    Dim rg As range
    Dim addcoment
    
    rg = Sheets("Leavetracker").range("B8:NH27")
    
    For Each cell In rg
    
    If cell = "o" Then
    ActiveCell.Select.addcoment
    
    End If
    
    Next cell
    
    End Sub
    Can you help me ?

    thanks
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cell coments into Word
    By screetch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2007, 04:01 AM
  2. How do I ensure that the coments appear adjacent to the cell
    By A.RAGHUNATH in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2006, 08:40 AM
  3. Can I change Indacator coments color?
    By Monica in forum Excel General
    Replies: 2
    Last Post: 02-16-2006, 05:10 PM
  4. Coments
    By Horacio in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-22-2005, 09: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