+ Reply to Thread
Results 1 to 3 of 3

How do I copy a row of Excel comments from one sheet on a workbook to another sheet

  1. #1
    Registered User
    Join Date
    03-19-2021
    Location
    Kinnegad, Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Post How do I copy a row of Excel comments from one sheet on a workbook to another sheet

    Hi,

    I have a problem. I will simplify it thusly. I have two workbooks opened, Book1 and Book2. Book2 is macro enabled. Book1 is not macro enabled. I want to copy a row of cells, each of which contain comments, to another worksheet on Book1. Let's say, my comments are located on A9 to F9 on Sheet1 of Book1. I want to transfer or copy those comments to particular cells on Sheet 2 of Book1. Let's say, G5, L12, D4, D13, P2, B13. 6 transfers altogether. What's the VBA code to do this? I am guessing some sort of for each loop.

    Paul Carr

  2. #2
    Forum Contributor
    Join Date
    07-24-2023
    Location
    Como, Italy
    MS-Off Ver
    MSO 365 - Ver 2208
    Posts
    120

    Re: How do I copy a row of Excel comments from one sheet on a workbook to another sheet

    Hello paulcarr1974,

    In a very simple way not knowing all the details here is an example of copying only the comments of the first 2 cells (for the others just change the source and destination cell):
    Please Login or Register  to view this content.
    let me know if I understood the request

    Bye
    Last edited by maxpit; 09-10-2023 at 04:28 PM.
    Max
    let's compare ideas

  3. #3
    Registered User
    Join Date
    03-19-2021
    Location
    Kinnegad, Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: How do I copy a row of Excel comments from one sheet on a workbook to another sheet

    Hi maxpit, Thank you for your quick reply. Your code works. However, I think I should clarify what I want. On book1, I have a list of dates in column A of sheet1, formatted for each day of September. (A2 to A31) "1 September 2023", "2 September 2023" and so on. In addition to sheet1, book1 also contains a sheet for each day of the current month, entitled, "1 September 2023", "2 September 2023". What I want to do is transfer or copy a range of 6 comments, in columns b, c, d, e, f and g that I enter beside each date on sheet1 to specific cells on its corresponding sheet with the same date. For example, I enter comments into cells B2:G2 beside the date, "1 September 2023" that I enter into A2. I want to transfer them to specific cells on the corresponding sheet named "1 September 2023", let's say to specific cells "H13:H18".

    I'm pretty sure that a for each loop statement will help me cut down the amount of VBA code considerably.

+ 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. Copy Comments from one SHeet to other Sheet
    By nordicdust in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-04-2022, 06:33 AM
  2. Replies: 3
    Last Post: 02-18-2020, 02:01 PM
  3. excel VBA - setting sheet names within workbook copy using existing wb sheet names
    By terriertrip in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2019, 03:35 PM
  4. [SOLVED] Copy all data from an Excel sheet in a different workbook to a blank sheet in current WB
    By drjarmin in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 12-27-2017, 02:24 AM
  5. [SOLVED] Copy sheet from another workbook based on ComboBox names of the Workbook and sheet
    By igormigor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2016, 10:07 AM
  6. Copy comments and value from another sheet in the same workbook
    By acpt22 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-07-2013, 08:56 AM
  7. Excel vba to copy sheet from current workbook to new Excel sheet ?
    By dearnemo385 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2012, 03:27 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