Copying & Pasting into a newly created worksheet
Hi, Can anyone help with this?
I want to copy and paste values from one worksheet into another, but I want a new tab to be created each time. For example: I want the workbook to create a new tab, rename the tab according to a name or number in a certain cell from the main tab/Sheet and copy data from the main tab into it. Then when I run the macro again it would create another new tab and so on. I hope that makes sense. I can put together the copy and paste bit, its the how to create a new tab and name it according to values or text from a certain cell that I am having trouble with Help greatly appreciated |
Copying & Pasting into a newly created worksheet
right click sheet tabview codecopy/paste this. Double click on the cell
with the name desired Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Sheets.Add.Name = Target.Value End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "JohnUK" wrote in message ... Hi, Can anyone help with this? I want to copy and paste values from one worksheet into another, but I want a new tab to be created each time. For example: I want the workbook to create a new tab, rename the tab according to a name or number in a certain cell from the main tab/Sheet and copy data from the main tab into it. Then when I run the macro again it would create another new tab and so on. I hope that makes sense. I can put together the copy and paste bit, its the how to create a new tab and name it according to values or text from a certain cell that I am having trouble with Help greatly appreciated |
All times are GMT +1. The time now is 01:11 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com