How can I copy comments to other sheets in a workbook using VBA

paulcarr1974

New Member
Joined
Sep 11, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a workbook. First sheet has dates September 1st 2023 to September 30th 2023 (a2 to a31). I have 6 comments in each cell of each row. (columns B,C,D,E,F and G). The next 30 sheets are for the thirty days of September, titled September 1st 2023, September 2nd 2023 etc. Using VBA I want to copy my six comments in each row of Sheet 1 to specific cells in the corresponding sheet. So, the 6 comments on the same row as September 1st 2023 to 6 cells in the corresponding sheet, titled "September 1st 2023". Those six cell addresses are the same for all 30 sheets. Let's say B5, G3, H4, I3, L10, A14.

How do I do this? I think I'll need to make use of a for next statement. Is there some way I can match the dates listed on sheet 1 with the dates on the sheet names and use that to transfer comments to the correct sheet?

Paul Carr
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
By "comments" do you mean just plain text in each cell or do you mean Excel comments that appear when you hover over each cell? It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach screenshots (not pictures) of your first sheet and at least one of the daily sheets. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
 
Upvote 0

Forum statistics

Threads
1,215,128
Messages
6,123,206
Members
449,090
Latest member
bes000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top