+ Reply to Thread
Results 1 to 4 of 4

Add and name new worksheet

Hybrid View

DaveE Add and name new worksheet 05-18-2009, 08:26 PM
shg Re: Add and name new worksheet 05-18-2009, 08:31 PM
rylo Re: Add and name new worksheet 05-18-2009, 08:33 PM
DaveE Re: Add and name new worksheet 05-18-2009, 08:47 PM
  1. #1
    Registered User
    Join Date
    05-18-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    5

    Add and name new worksheet

    I have added a new sheet using ActiveWorkbook.Sheets.Add After:=ActiveSheet but cannot find the method of naming the new sheet.
    Can someone please help
    Last edited by DaveE; 05-18-2009 at 08:48 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Add and name new worksheet

    The new sheet becomes the active sheet, so
    activesheet.name = "Bob"
    Please be mindful of using code tags.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Add and name new worksheet

    Hi

    Try this

    With ActiveWorkbook.Sheets.Add(After:=ActiveSheet)
        .Name = "yourname"
      End With
    rylo

  4. #4
    Registered User
    Join Date
    05-18-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Add and name new worksheet

    Thanks for your help
    You have done in two minutes what I couldn't find in two hours
    Thanks again

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1