VBA to copy Text in a cell to another sheet if the adjacent cell matches the Sheet name

amstall

New Member
Joined
Dec 6, 2023
Messages
1
Office Version
  1. 2011
Platform
  1. Windows
I manually enter the values in columns C and D on the "Master" worksheet. I then have a macro with button built to automatically copy the "Template" worksheet and rename it the value in column C from the master. This also copies the formula in cell B9 from the template to each sheet, which just copies the sheet name. =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

I want to piggyback off my original macro w/ button in infill the values in B9 and C9 on the created worksheets from the list on the Master worksheet columns C and D, if the sheetname matches with column C.
 

Attachments

  • scopessnip3.JPG
    scopessnip3.JPG
    111.3 KB · Views: 15
  • scope snip2.JPG
    scope snip2.JPG
    57.9 KB · Views: 15
  • scope snip1.JPG
    scope snip1.JPG
    92.5 KB · Views: 14

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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