+ Reply to Thread
Results 1 to 6 of 6

Prepopulated inputbox with current fiscal year, month, day

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    71

    Prepopulated inputbox with current fiscal year, month, day

    ~~ Correction, Fiscal year is not needed. Calender year please.

    I am working on a work project so that when a user clicks a command button, it clears all daily data out of a log to create a new log for the next cylce. Everything works in my code, but I was wondering if there was a way to pre-populate the inputbox so the user doesn't have to type as much into the box, just verify that it is correct and add the next number. Our daily numbers go YY MM DD ABC ###. The ### only changes when we have multiple missions per day, so this would be user inputted. The "ABC" is always "ABC", YY MM DD is the two digit year, month, day.

    Thank you!!

    Please Login or Register  to view this content.
    Last edited by jwlamb; 10-07-2013 at 01:36 AM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Prepopulated inputbox with current fiscal year, month, day

    Please Login or Register  to view this content.
    Last edited by Fotis1991; 10-07-2013 at 04:04 AM. Reason: added code tags
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: Prepopulated inputbox with current fiscal year, month, day

    I can't get that to work. Where do I put that into the code?
    Thank you.

    Quote Originally Posted by patel45 View Post
    Sub a()
    populate = "ABC " & Format(Date, "yy-mm-dd")
    response = InputBox("Prompt", , populate)
    End Sub

  4. #4
    Registered User
    Join Date
    08-14-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: Prepopulated inputbox with current fiscal year, month, day

    I got it to work, thank you. But is there a way to adjust it for a different time zone? (Zulu time) Thank you,

    Quote Originally Posted by jwlamb View Post
    I can't get that to work. Where do I put that into the code?
    Thank you.

  5. #5
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Prepopulated inputbox with current fiscal year, month, day


  6. #6
    Registered User
    Join Date
    08-14-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: Prepopulated inputbox with current fiscal year, month, day

    I used a similiar page with the code, however it must be added into a module. Something else new to me. BUT, I did get it working.

    Thank you all!

    Quote Originally Posted by patel45 View Post

+ 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] Chart titles that update with current fiscal year
    By dcdeez in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-18-2013, 03:29 PM
  2. how to convert date to fiscal year if fiscal year start at 16th or 17th of July
    By sushil shakya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2013, 03:32 AM
  3. [SOLVED] Create Fiscal Year - Lookup Date in Fiscal Month Date Range and Return EOM Date
    By gbriscoe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2013, 03:29 PM
  4. autocalculate current week of fiscal year?
    By zb61 in forum Excel General
    Replies: 6
    Last Post: 06-14-2012, 02:29 AM
  5. [SOLVED] Pivot: Replace month numbers with month names and sort by fiscal year
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2011, 02:13 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