+ Reply to Thread
Results 1 to 3 of 3

Insert Sheet

  1. #1
    Forum Contributor
    Join Date
    10-23-2003
    Posts
    141

    Insert Sheet

    Hi,

    Is there a way to insert/add a sheet at the end of a workbook, without knowing the # of sheets or the name of the sheets(The name & number of sheets changes weekly)?

    Any help would be greatly appreciated!

  2. #2
    Chip Pearson
    Guest

    Re: Insert Sheet

    Steve,

    Try

    With ThisWorkbook.Worksheets
    .Add(after:=.Item(.Count)).Name = "New Name"
    End With


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com



    "STEVEB" <STEVEB.21uenf_1137608457.253@excelforum-nospam.com>
    wrote in message
    news:STEVEB.21uenf_1137608457.253@excelforum-nospam.com...
    >
    > Hi,
    >
    > Is there a way to insert/add a sheet at the end of a workbook,
    > without
    > knowing the # of sheets or the name of the sheets(The name &
    > number of
    > sheets changes weekly)?
    >
    > Any help would be greatly appreciated!
    >
    >
    > --
    > STEVEB
    > ------------------------------------------------------------------------
    > STEVEB's Profile:
    > http://www.excelforum.com/member.php...fo&userid=1872
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=502573
    >




  3. #3
    Forum Contributor
    Join Date
    10-23-2003
    Posts
    141
    Thanks Chip,

    It worked great! I appreciate your help!

+ 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