VBA to copy a particular sheet to multiple sheets in a new workbook that are renamed from a range?

aashish83

Board Regular
Joined
Feb 15, 2022
Messages
62
Office Version
  1. 365
Platform
  1. Windows
I need to have FSR Level A sheet copied to new sheets created in macro below highlighted in Red. I have deadline and need help.




Sub FSRA()

With ActiveWorkbook.Sheets(Array("FSR Level A", "BI", "Instructions"))
.Copy
ActiveWorkbook.SaveAs Filename:=ThisWorkbook.Path & Application.PathSeparator & "Audit Form FSR A", FileFormat:=52

End With

Dim sheets_count As Integer
Dim sheet_name As String
'Dim sheet_number As Integer
Dim i As Integer

sheet_count = Sheets("BI").Range("A17").Value
'sheet_number = Sheets("BI").Range("A17").value
For i = 1 To sheet_count
'sheet_name = "Connector " & sheet_number
sheet_name = Sheets("BI").Range("A18:A7000").Cells(i, 1).Value
Worksheets.Add(After:=Sheets(Sheets.Count)).Name = sheet_name

Next i

End Sub
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,214,940
Messages
6,122,352
Members
449,080
Latest member
Armadillos

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