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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,821
Messages
6,181,163
Members
453,021
Latest member
Justyna P

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