+ Reply to Thread
Results 1 to 4 of 4

Macro to prompt user to select date and save file

  1. #1
    Registered User
    Join Date
    07-04-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    27

    Macro to prompt user to select date and save file

    Hi,

    I want add come code to the end of a macro that will allow a user to select a date and then the macro will take that date and add it to the end of a filename and then save the file in a certain location.

    E.g. save the file as "Report for X" where X is the date the user has selected once prompt.

    What is the best way to do this?

    TLP

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Macro to prompt user to select date and save file

    Maybe,

    Please Login or Register  to view this content.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Registered User
    Join Date
    07-04-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Macro to prompt user to select date and save file

    Hi JapanDave,

    Is there anyway to use a calendar date picker rather than have them enter a free format date?

    TLP

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Macro to prompt user to select date and save file

    You will have to create a custom userform if you want a calendar.
    It is likely you will encounter issues with Date Pickers if users have different versions of Excel.

    However, here is one version that does not use Active-X controls - it is an add-in.

    Date Picker Calendar
    Another non-Active-X Date Picker

    There are tons of resources available on Excel Date Pickers - do a web search and you'll get lots of links.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ 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