Closed Thread
Results 1 to 3 of 3

If cell is formula and cell below has comment then copy comment to cell with formula

  1. #1
    Registered User
    Join Date
    11-20-2017
    Location
    Harrisburg, PA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    56

    If cell is formula and cell below has comment then copy comment to cell with formula

    I'm new to VBA but have successfully created a macro that inserts a row, then inserts a formula in the columns in that row to add two rows below it together, changes the formula into a value, then deletes the two rows that make up that value. Some of the cells that get deleted have comments in them that I would like to move into the inserted row before the row is deleted. I'm trying to create a macro that says if a cell has a formula and the cell below it has a comment then copy the comment to the formula cell. I've tried multiple different ways but can't seem to get anything that works. Attached is my file with some examples of what I am talking about.

    Any help you can give would be greatly appreciated.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: If cell is formula and cell below has comment then copy comment to cell with formula

    dup:https://www.excelforum.com/excel-pro...h-formula.html
    Ben Van Johnson

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: If cell is formula and cell below has comment then copy comment to cell with formula

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here. I am, therefore, closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-pro...h-formula.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If cell has formula and cell below has comment then copy comment to cell with formula
    By PandoraGirl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-25-2019, 06:50 PM
  2. [SOLVED] Possible to add comment to a cell by formula?
    By LoneWolf78 in forum Excel General
    Replies: 2
    Last Post: 11-27-2017, 03:42 PM
  3. [SOLVED] Function to return comment from a cell, or null string if no comment
    By Monkihunta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2017, 01:01 PM
  4. [SOLVED] Show comment on mouse over cell rather than over comment icon....?
    By BellyGas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2015, 09:05 AM
  5. Check if cell in range is empty, if it is delete comment else format comment to
    By banaanas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2015, 01:15 AM
  6. Formula to copy a comment from cell A1 to cell A2?
    By levitt in forum Excel General
    Replies: 9
    Last Post: 08-06-2014, 02:45 AM
  7. Adding a comment to a formula-not a cell
    By Floridagal in forum Excel General
    Replies: 4
    Last Post: 01-05-2005, 09:06 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