+ Reply to Thread
Results 1 to 8 of 8

Time Management Tool

  1. #1
    Registered User
    Join Date
    05-02-2009
    Location
    New, New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Time Management Tool

    I have 143 macros, but I put 8 of them here b/c the post would not go through with all of them. I couldn't fit all of them on an attachment either b/c the file size was too big. However, I have this goal I have been working on for the last three months on the weekends and the last part I need some help with. I would like help with a macro that I can add onto the ones I have. I would like the macro to activate and cause a message box to appear when I open the excel doc. I would like also to be able to activate the message box and its associated macros after the document has been opened.

    I would like the message box to have
    - Message “The Current Time is (Macro puts current computer time here)”
    - Question “How much time do you have?” then beneath this question
    - Blank field labeled Hour to give answer
    - Blank field labeled Minute to give answer

    Depending on the current time on the computer as well as the hour and minute entered, a macro with a matching title from the list below will be selected that fits that criterion. For example, let’s say it is 5:30am and I entered 1 hr and 15 min in the empty fields of the message box. As a result the macro named “Sub Hour1Min15time530am” will be activated. Also due to the fact that the macros I have are in 15 min intervals the code would need to round to the nearest time, so if it was 5:33am when I ran the code the macro would default to 5:30am whereas if it was 5:39am when I ran the code the macro would default to 5:45am. Is this possible to do and if so could you help me with it?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Time Management Tool

    What you need may be not a problem but please attach your worksheet (columnS B..L or also b:c) to better understand what cells formula refers to dependending on start and entered time so it's possible to do all in a shorter macro.

    Regards,
    Antonio

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Time Management Tool

    Just as a heads up - this:

    Please Login or Register  to view this content.
    can be shortened somewhat to:

    Please Login or Register  to view this content.
    I suspect you could adapt you other code along similar lines...

    Try to avoid lots of .Selects as this will slow your code

  4. #4
    Registered User
    Join Date
    05-02-2009
    Location
    New, New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Time Management Tool

    I attached the Excel doc here per your advice. Thank you for your help. I was surprised to see that I was able to attach it. I tried attaching a word doc with all the macros with my first post but it said the file was too big. I am happy I was able to get it here so you can get a better idea of what I am talking about. Thank you.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-02-2009
    Location
    New, New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Time Management Tool

    Thanks for the tip DonkeyOte, I can't believe I overlooked your suggestion. I could have saved myself a lot of time. I will keep in mind to avoid using lots of .Selects. Thanks again for your help.

  6. #6
    Registered User
    Join Date
    05-02-2009
    Location
    New, New York
    MS-Off Ver
    Excel 2003
    Posts
    31

    Solved

    I am closing this post. I am going to try and see if I can get an answer with a new post.
    Last edited by EJensen; 05-31-2009 at 11:17 AM. Reason: SOLVED

  7. #7
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Time Management Tool

    Would you like this thread closed then ?

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Time Management Tool

    You have an answer in the new post, I take it that the answers provided here completed this stage.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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