+ Reply to Thread
Results 1 to 7 of 7

SaveAs based of user input.

  1. #1
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    SaveAs based of user input.

    Morning All,

    I have this moace that does a great job of creating dated folders and saving reports with names and dates..... If they are run "Daily"..

    I am looking to enhance this maco to allow the user to input the date where they would like the file saved. So as an example if i ran todays report the below code works great.. but if i forgot to run yesterdays report and wanted to run it today it would save as todays date and in this case i want the user to be able to input the date in case it is not todays date.

    Here is my macro:
    Please Login or Register  to view this content.
    Also if anyone has suggestion to make this code better i am always up for improvements..

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: SaveAs based of user input.

    Hi,

    Why don't you try changing this line of code :

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: SaveAs based of user input.

    Hi,

    Close the file did save with the correct fileName (EUC560-A-11-01-2013, but went into December's folder.

  4. #4
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: SaveAs based of user input.

    Hi,

    Post the new code and let me have a look as the folder name is being derived from this code of yours :

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: SaveAs based of user input.

    Here is the new code:

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: SaveAs based of user input.

    Ok,

    Here is your full updated code.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    10-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: SaveAs based of user input.

    LOL that worked and darn i was thinking i had to make some changes to the (Now) on stryear

+ 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. Data Input Form with number of line items based on user input
    By j_gideon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2013, 02:54 PM
  2. Replies: 4
    Last Post: 02-25-2013, 06:43 PM
  3. user defined macro to replace certain characters in a string based on user input
    By whatappears in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2012, 06:25 PM
  4. Automatic Formula Input Based on User Input Using a Macro
    By Drayloc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2012, 12:10 PM
  5. Using text box input to lookup number and replace based on user input into new column
    By harl3y412 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2011, 03:15 PM

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