+ Reply to Thread
Results 1 to 3 of 3

Creating a new sheet with date in the sheet name

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    Finland
    MS-Off Ver
    Excel 2013
    Posts
    10

    Creating a new sheet with date in the sheet name

    Please Login or Register  to view this content.
    This works just fine when I create first copy, but after that it's type mismatch (error 13)

    EDIT: As this is my first post here, I forgot to explain what I want to do here.
    I want to create a new sheet with a name "24.7.2013" if the previous date was "23.7.2013" and so on.
    Every H11 Cell in every sheet contains a date. I am setting the variable ShtName a value (the date from newest sheet cell H11 + 1).
    Then I copy the newest sheet and rename it with ShtName. Sorry if this seems messy. It's actually quite simple, I'm just not so good at explaining stuff.
    Last edited by hermoraunio; 07-23-2013 at 07:19 AM.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Creating a new sheet with date in the sheet name

    So you run this every time you want to add a day and count up inserting the newest day in between the first day and the last day added?

    Is that the outcome you actually want?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    07-23-2013
    Location
    Finland
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Creating a new sheet with date in the sheet name

    Well, the optimal outcome would be:

    1. New sheet name is today in form of "dd.mm weekday"
    2. New sheet would appear on the left side of the main page [before:sheets(1)]
    2.1 Sheet 4 (oldest) - Sheet3 (older) - Sheet 2 (old) - Sheet 1 (newest) - Main Page
    3. If today already exists, macro would prompt new date with an InputBox and then form new sheet with that data

    I guess this whole thing could be done way differently and more logically, but I'm actually not that great with VBA.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] creating excel sheet based on today's date
    By tanglin10 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2013, 07:38 AM
  2. Replies: 2
    Last Post: 12-05-2012, 07:57 PM
  3. Creating a summary sheet based on date and printing it
    By bchico in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2012, 11:50 AM
  4. Replies: 6
    Last Post: 07-25-2012, 07:55 AM
  5. Creating a control button on a front sheet to update another sheet
    By 2steve40 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2010, 06:47 AM

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