+ Reply to Thread
Results 1 to 7 of 7

macro to insert sheets with input box (DATE)

  1. #1
    Forum Contributor
    Join Date
    11-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    204

    macro to insert sheets with input box (DATE)

    Hi Champs,

    This is a scenario...

    i need a macro to input my month and year and then respective day names has to be created in sheet names.


    for example, if i input December 2014,

    31 sheets to be created with Dec 1, Dec2, .......till......Dec 31.

    Please help ...

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: macro to insert sheets with input box (DATE)

    Perhaps.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    11-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    204

    Re: macro to insert sheets with input box (DATE)

    the above code works fine only for January 2014... is it possible to make all the month's date ?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: macro to insert sheets with input box (DATE)

    Not sure what you mean, the code works fine for me for other months, for example December 2014, Nov 78, July 83 etc.

  5. #5
    Forum Contributor
    Join Date
    11-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    204

    Re: macro to insert sheets with input box (DATE)

    ooopsssssss.. sorry . i was using 03/2014 instead of march/2014.

    its working great

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: macro to insert sheets with input box (DATE)

    That's more kind of my fault, I should have accounted for people entering the month/date in a different format, or at least indicate the required format for the code to work properly.

    I would do that now but I'm using a version of the code to see how Excel handles the addition of a sheet for every day in every year in a decade.

  7. #7
    Forum Contributor
    Join Date
    11-16-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    204

    Re: macro to insert sheets with input box (DATE)

    Thanks a lot NORIE.

+ 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] input date column A, increment B, select blank cell in D and input time. in a macro
    By jeffstu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2012, 11:19 AM
  2. Replies: 4
    Last Post: 07-27-2012, 04:10 AM
  3. Insert date on userform based upon previous text box input.
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-02-2012, 04:09 PM
  4. Insert row macro - user input
    By alpine615 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2010, 02:16 PM
  5. Delete and Insert macro with Input Box
    By Hyperbole in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2008, 10:21 PM

Tags for this Thread

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