Copy Excel Sheet with value from a cell "A1" in the same workbook

Dalacarelia

New Member
Joined
Apr 12, 2012
Messages
7
I looking for a solution , i need to copy same sheet many times but with diiferent name , and the name is in cell A1
 

Some videos you may like

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

pboltonchina

Well-known Member
Joined
Apr 24, 2008
Messages
1,095
All the sheet names can't be in A1 or do you want to rename the sheet with the value in A1, is there a list in column A you want to create sheets named from? You need to be a bit more specific if you want any help. The question you have asked doesn't make sense
 

Dalacarelia

New Member
Joined
Apr 12, 2012
Messages
7
All the sheet names can't be in A1 or do you want to rename the sheet with the value in A1, is there a list in column A you want to create sheets named from? You need to be a bit more specific if you want any help. The question you have asked doesn't make sense


Sorry you are right there , i mean the value of A1 Cell , and it is alway a name in my case . I always have an template sheet , and i want top copy that sheet with the given name in cell A1
 

Dalacarelia

New Member
Joined
Apr 12, 2012
Messages
7
Sorry you are right there , i mean the value of A1 Cell , and it is alway a name in my case . I always have an template sheet , and i want top copy that sheet with the given name in cell A1

 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650

ADVERTISEMENT

Try like this

Code:
Sub CopySheet()
Sheets("Sheet1").Copy after:=Sheets(Sheets.Count)
On Error Resume Next
ActiveSheet.Name = Range("A1").Value
On Error GoTo 0
End Sub
 

Dalacarelia

New Member
Joined
Apr 12, 2012
Messages
7
How can i go back to my start Sheet ( Mallen ) when i created the new sheet

Sub Kopiera_Blad_Mallen()
Sheets("Mallen").Copy after:=Sheets(Sheets.Count)
On Error Resume Next
ActiveSheet.Name = Range("A1").Value
On Error GoTo 0
End Sub
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try

Code:
Sub Kopiera_Blad_Mallen()
Sheets("Mallen").Copy after:=Sheets(Sheets.Count)
On Error Resume Next
ActiveSheet.Name = Range("A1").Value
On Error GoTo 0
Sheets("Mallen").Select
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,122,519
Messages
5,596,634
Members
414,082
Latest member
sasmita

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
Top