+ Reply to Thread
Results 1 to 3 of 3

Placing a value in a comment on another sheet

  1. #1
    Forum Contributor
    Join Date
    11-26-2008
    Location
    UK
    MS-Off Ver
    Using Excel 2019
    Posts
    317

    Placing a value in a comment on another sheet

    Hi,

    I would like a worksheet macro that does the following:

    • Looks at the number values in B6:B506 in the current sheet
    • Compares them to the number values in Sheet1 in cells A2:A506
    • If the numbers match and the corresponding cell on the same row (F2:F506) does NOT equal "On Course"
    • Then copy that cell value and place it AS A COMMENT in the matching ID cell (B6:B506) in the current sheet.


    Hopefully the attachment makes it easier to understand.

    Comment Query.xlsx

    Any help appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Placing a value in a comment on another sheet

    Look at for next loops on google for intRow =2 to 506 and look at adding comments on google.


    also you're comparing a 500 row range to a 504 row range
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Placing a value in a comment on another sheet

    Try placing this in your workbook module
    Please Login or Register  to view this content.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

+ 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. Data placing from one sheet to another sheet based on criteria
    By amy_d2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2013, 01:59 AM
  2. [SOLVED] Taking input of drop down and placing in another sheet along with sheet information
    By atlbananas in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-14-2013, 03:42 PM
  3. Placing Formula In Comment Boxes
    By dabomber7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-05-2013, 06:39 PM
  4. [SOLVED] Pulling data from a main sheet and placing it onto a newly created sheet
    By cbomination in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 05-25-2012, 10:12 AM
  5. Replies: 1
    Last Post: 05-12-2010, 01:34 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