Results 1 to 3 of 3

Inserting and Naming Sheets

Threaded View

  1. #1
    Registered User
    Join Date
    03-23-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    37

    Question Inserting and Naming Sheets

    This is probably very simple but I am not sure how to do it. Here is the code I recorded to insert a new sheet in a workbook.

    Sheets.Add After:=Sheets(Sheets.Count)
    Sheets("Sheet34").Select
    Sheets("Sheet34").Name = "Billed Summary"

    My problem is the name "sheet34" is not always "sheet34" so the next line does not reference the right name. Can you give the sheet a name when you insert it?
    Last edited by jcranst; 05-30-2013 at 09:54 AM.

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