Im looking for Excel VBA code to automatically duplicate Tab 1 in workbook when a table in Tab 2 is populated with a name
问题 VBA code needed: I have 2 tabs in a workbook. Tab 1 (DIST "A") is a formatted spreadsheet & Tab 2 (RFP) has a table with a column called "Distributor". When I enter names under the Distributor list, could be 1 or 30 differnet names, I want VBA to automatically duplicate Tab 1, rename the duplicated sheet to whatever name I entered, and send it to end of workbook. Here's my current code, its duplicating the ACTIVE SHEET, Tab 2 and not Tab 1 (what I need) Sub Copyrenameworksheet() Dim ws As