+ Reply to Thread
Results 1 to 3 of 3

change start and end date based on userform entry

  1. #1
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    change start and end date based on userform entry

    hi guys,

    i have this following code on my file

    Please Login or Register  to view this content.
    what i want to accomplish is...i want to have a userform which has 2 textbox for start and end date...and an "ok" button for the changes to take effect. the userform will work in such a way that if the user enters 2014-05-11 for the "start date" and 2014-05-12 for the "end date" then hitting the "ok" button will change the dates from the code above...anyone has the idea on how to accomplish this? thanks in advance...

    also the userform should appear first once the workbook is launched.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: change start and end date based on userform entry

    Less complicated way, You dont HAVE to use a userform. I use cells for the values say: B1, and B2 (with labels in A1, A2 for StartDate, EndDate)
    Put a button on the screen run your macro above.
    Last edited by ranman256; 05-12-2014 at 03:47 PM. Reason: spellg

  3. #3
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Re: change start and end date based on userform entry

    Quote Originally Posted by ranman256 View Post
    Less complicated way, You dont HAVE to use a userform. I use cells for the values say: B1, and B2 (with labels in A1, A2 for StartDate, EndDate)
    Put a button on the screen run your macro above.
    hi ranman,

    thanks for the quick reply...i know how to do that but i just want to do a different thing which is needed for the program...any idea how to do this??

+ 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. Calculate next due date based on start date frequency and current date
    By ironoverload in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-09-2014, 07:08 AM
  2. [SOLVED] Fill End Date with Start date of the next Matching Entry
    By Whraith in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-20-2013, 12:06 AM
  3. vba userform for data entry and reporting date to date
    By shamasdeen01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2013, 03:02 AM
  4. Userform - Date entry
    By moadeep in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2012, 06:42 AM
  5. Give Choices based upon Userform Entry
    By 00Able in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2011, 06:52 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