+ Reply to Thread
Results 1 to 7 of 7

message prompt appears to be delayed

  1. #1
    Registered User
    Join Date
    07-28-2008
    Location
    United States
    Posts
    28

    message prompt appears to be delayed

    Hi,

    One of the excel experts Leith gave me a code regarding my time track program. I have a UserForm which contains a Textbox, search, starttime and endtime button. Basically the program works like this: User enters id no from the text box, click on search once id no found, he can click either the starttime or endtime button.The Starttime is working good. However my problem is on the Endtime button. When clicking the endtime button, a message prompt should appear stating the remaining time left for the break. User click "Yes", the time he click the button will be pasted on the worksheet. Code is working however, when clicking the endbutton, the time is being pasted immediately on the worksheet instead of the message prompt which is the first thing to appear. The message prompt should appear first. Once the user click on the "Yes" button, that is the time, the endtime should be pasted on the worksheet.

    Here is the code:


    Please Login or Register  to view this content.
    Thanks,

    Minato
    Last edited by mudraker; 08-03-2008 at 08:44 AM.

  2. #2
    Forum Contributor colofnature's Avatar
    Join Date
    05-11-2006
    Location
    -
    MS-Off Ver
    -
    Posts
    301
    Quick! Change your <code> tags to [code] before anyone else notices!
    Also, it might be easier if you were to attach the file. Big screes of text aren't as useful as an example.
    Col
    Last edited by colofnature; 08-02-2008 at 10:02 PM.
    If you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime.

  3. #3
    Registered User
    Join Date
    07-28-2008
    Location
    United States
    Posts
    28
    Hi colofnature,

    oopss thanks for the warn. Sorry i dont know how to enclose codes...here is the code again togethjer with the attach sample workbook:

    Please Login or Register  to view this content.
    Thanks,

    Minato
    Attached Files Attached Files
    Last edited by minato; 08-02-2008 at 10:39 PM. Reason: added sample file workbook

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    minato

    Your attempt to wrap your VBA code did not work because you used <code>

    You should have used square breakets [ ] insted of < >
    or use the # key symbol from the text formatting widow

    I have fixed up your VBA code wrapping
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  5. #5
    Registered User
    Join Date
    07-28-2008
    Location
    United States
    Posts
    28
    hi mudraker,

    thanks for wrapping up my code. I guess i got caught by you as colofnature stated...lols...anyway, do you have any idea regarding my query? Here is an attach workbook

    Thanks,

    Minato
    Attached Files Attached Files

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello minato,

    I had to basically rewrite most of your code due to the number of errors. The message and times now function correctly. Please see the attached workbook.

    Siincerely,
    Leith Ross
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-28-2008
    Location
    United States
    Posts
    28
    hi Leith,

    I can't thank you enough for helping me out with my program. Thank you so much for giving me ideas on how excel vba works. I was able to gather ideas from the revise coding you made. Thank you thank you so much.


    Minato

+ 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