+ Reply to Thread
Results 1 to 2 of 2

Automatically add note to cell in dynamic range based on value

  1. #1
    Registered User
    Join Date
    08-29-2022
    Location
    Houston
    MS-Off Ver
    2016
    Posts
    1

    Automatically add note to cell in dynamic range based on value

    Howdy!

    I am working on a project containing a table that will track multiple services performed on multiple pieces of equipment. Additionally, I have a hidden table with three columns to identify the equipment: Unit #, Equipment, and Serial #.

    The first column of the main table is a drop down list using data validation. The list is from the Unit # column of the hidden table.

    What I am trying to do is that in the first column of the main table, when a drop down selection is chosen, I want Excel to automatically add a note to the cell that shows that Unit #'s corresponding Equipment and Serial # from the hidden table. For example, the first row of my hidden table could show 12345, D10 Dozer, 123456789. When "12345" is selected from the drop down in the main table, I would want the comment attached to it to say:

    EQUIPMENT:
    D10 Dozer

    Serial #:
    123456789

    I've toyed around with a few ways in VBA but nothing is giving me quite what I'm looking for, and a lot of what I'm finding in forums are for fixed ranges or cells, but this main table could ostensibly go on forever as more and more services are performed on the different equipment.

    For what it's worth, I also currently have two hidden columns in the main table that are just using VLOOKUP to auto-fill the corresponding Equipment and Serial # based on what drop down was selected in the first column. I realize the solution likely won't need that, but it's there for if I do need it.

    I hope I've explained this well enough, but if I need to clarify further I'd be happy to try.

    Any help would be greatly appreciated. Thanks for your time!

  2. #2
    Valued Forum Contributor
    Join Date
    05-03-2022
    Location
    Halifax,Canada
    MS-Off Ver
    365
    Posts
    326

    Re: Automatically add note to cell in dynamic range based on value

    hi StedDoom;
    You've indicated you've got a vlookup that retrieves the information so my code assumes you know the values you want to enter into the note field.
    So for demo purposes i've just hardcoded in the equipment and serial number
    Without sample sheets this is about the best I can do

    Please Login or Register  to view this content.
    if this has helped please consider clicking "add reputation", thx
    Last edited by nimrod1313; 08-29-2022 at 04:28 PM.

+ 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] Dynamic Calculating range based on cell value
    By Ollie7957 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-22-2018, 09:39 AM
  2. [SOLVED] Warning Sign/Note when cell value outside of number range
    By matt.howard in forum Excel General
    Replies: 4
    Last Post: 08-08-2017, 07:43 AM
  3. Dynamic range based on cell value
    By BWellman in forum Excel General
    Replies: 4
    Last Post: 07-13-2016, 04:17 AM
  4. VBA to clear dynamic range based on cell value
    By gjwilson1216 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2015, 03:36 PM
  5. Dynamic cell range based on a formula
    By mljs54 in forum Excel General
    Replies: 1
    Last Post: 10-20-2011, 09:59 AM
  6. copying dynamic range based on cell outside of range
    By xcelelder in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2005, 12:08 PM
  7. Run macro automatically when a cell in a dynamic range changes
    By glimmer23@yahoo.com in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2005, 05:05 AM

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