VBA Copy & Paste tab based on criteria

SDMaestro

New Member
Joined
Dec 7, 2017
Messages
10
Hi All,

I have spreadsheet I am working on that I know could benefit from a Macro, but my VBA experience is minimal so I'm having difficulty wrapping my head around how to write it.

Currently I have two worksheets (1 Master & a template that feeds off of it), the structure of the master tab is below
Co.Div.PC.GLNameBalanceRec Required (Actually in Column L)
653901102AR100Yes
653901102PPD100No

<tbody>
</tbody>

What I would like to do is three fold
  1. have a copy of my worksheet "Template" made for any record labeled "yes" under Rec Required
  2. Populate that records Co./Div./PC./GL/ into C3/C4/C5/C6 of the newly pasted template
  3. Rename the the newly pasted tab as that records Co.-Div.-PC.-GL (6-539-0-1102)

Any help with writing this macro is greatly appreciated
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

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