LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Macro which inserts new sheet name

On 16 Jun, 22:24, "Mike Fogleman" wrote:
ActiveSheet.Copy Befo=Sheets(1)
* * 'the new sheet is now the activesheet
ActiveSheet.Name = Range("E2").Value
Sheets("Sheet2").Activate

Mike F"Bevy" wrote in message

...



Hi, I have a macro where I need to paste the content of a copied cell
as the sheets name. *Below is example of where I am, but can't find
the syntax to paste the copied value when re-naming the sheet. * Any
suggestions would be really appreciated.... thanks Bev


Sub selectandcopy()


* *Cells.Select
* *Selection.Copy
* *Sheets.Add
* *ActiveSheet.Paste
* *Range("E2").Select
* *Application.CutCopyMode = False
* *Selection.Copy
* *ActiveSheet.Select
* *ActiveSheet.Name = *****Paste copied selection from E2 here"
* *Sheets("Sheet2").Select
End Sub- Hide quoted text -


- Show quoted text -


MIke - that fantastic thank you - so straight forward really but
couldn't get there. Thanks! Bev
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recorded single column insert in macro. Macro inserts two not one lostatlewisu Excel Programming 3 August 16th 07 01:26 AM
Macro inserts a column but dont update formulas in another sheet! Stuart[_3_] Excel Programming 1 November 2nd 06 02:51 PM
Excel automatically inserts a formula in my sheet smurrock Excel Worksheet Functions 1 July 6th 06 03:10 PM
Macro that inserts lines reply Esrei Excel Discussion (Misc queries) 2 May 13th 05 03:34 PM
Macro that inserts lines Esrei Excel Discussion (Misc queries) 1 May 9th 05 01:50 PM


All times are GMT +1. The time now is 11:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"