+ Reply to Thread
Results 1 to 3 of 3

adding new worksheets to the bottom of an existing one

Hybrid View

  1. #1
    Registered User
    Join Date
    09-10-2007
    Posts
    9

    adding new worksheets to the bottom of an existing one

    Hi, I've a existing worksheet and wish to update by adding the daily worksheets coming in to the bottom of the existing worksheet. What's the function to do this?

     Sub addSht()
    Worksheets.Add after:=(Worksheets.Count)
    ActiveSheet.Name = Format(Date - 31, "MMM")
    End Sub
    Does this works? =)
    Thanks
    Last edited by VBA Noob; 09-24-2007 at 03:56 AM.

  2. #2
    Registered User
    Join Date
    09-24-2007
    Posts
    1
    Is this what you're trying to do??

     Sub addSht()
    Set NewSheet = Worksheets.Add
    NewSheet.Name = Date$
    End Sub
    Last edited by VBA Noob; 09-24-2007 at 02:37 PM.

  3. #3
    Registered User
    Join Date
    09-10-2007
    Posts
    9
    sorry but wads the difference between the 2 codes?

+ 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