PC Review


Reply
Thread Tools Rate Thread

Copying & Pasting into a newly created worksheet

 
 
=?Utf-8?B?Sm9oblVL?=
Guest
Posts: n/a
 
      13th Oct 2007
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, it’s 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

 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      13th Oct 2007
right click sheet tab>view code>copy/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
(E-Mail Removed)
"JohnUK" <(E-Mail Removed)> wrote in message
news:EDFB0F7A-548C-451F-A695-(E-Mail Removed)...
> 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, it’s 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
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2003: Drop newly created signatures into a newly created pulldown Kpundt Microsoft Outlook Discussion 0 6th May 2010 09:52 PM
Auto Refresh data from original worksheet to newly created copy wolverine Microsoft Excel Misc 0 11th Apr 2010 04:10 PM
code to attach a macro to a newly created worksheet C. Corodan Microsoft Excel Programming 2 30th Jul 2008 03:09 PM
Referencing a newly created worksheet Charyn Microsoft Excel Worksheet Functions 2 2nd May 2005 04:13 AM
Copying worksheet and pasting on new worksheet, it makes page bre =?Utf-8?B?ZXhjZWwgcXVlc3Rpb24=?= Microsoft Excel Worksheet Functions 2 24th Oct 2004 12:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:11 PM.