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
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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
 
Upvote 0
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
 
Upvote 0
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

 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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