+ Reply to Thread
Results 1 to 5 of 5

Macro to input data from the data input box.

  1. #1
    Registered User
    Join Date
    06-07-2010
    Location
    california, us
    MS-Off Ver
    Excel 2003
    Posts
    37

    Macro to input data from the data input box.

    I have been trying to get this simple input box work on my own and its getting horribly harder as I try to get more complicated function out of it. The attached file shows what I have done so far. The "main" worksheet has an "add" box when click upon displays user input box that I have already made. When the input box pops up, there are several boxes and will input data as accordingly. First the user selects Grade and that grade will go to one of the corresponding sheets and then it will copy the data that the user has input and paste it under the corresponding column. The date added will be today's date and time (I was wondering if I can display today's date on the input box). Lastly, when the user inputs data, it is supposed to show the recent addition for each of the grade in the "main worksheet." I am a beginner when it comes to vba and I have searched and copied some relevant code which is still in the workbook(most of them do not work). Would anyone be kind to help me out of this situation? Thanks.

    Regards,
    james
    Attached Files Attached Files
    Last edited by jhc8255; 10-14-2010 at 09:45 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Macro to input data from the data input box.

    Hi

    Is this what you are trying to do?

    rylo
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-07-2010
    Location
    california, us
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Macro to input data from the data input box.

    rylo,

    your code works like a charm. one thing though... on the line that reads
    Please Login or Register  to view this content.


    the function "datevalue", as far as I understand, will drop the time no matter what. The text that will go into the box will include the time and it is critical that I have it in place.
    For example... I will copy the following into the text box... 09-Jul-2010 07:03 and I want the end result to be formatted: "yyyy-mm-dd hh:mm" Would you please take a look to see if you can change code so that it will display the time as well?

    Thanks again!


    Please Login or Register  to view this content.



    Regards,
    james
    Last edited by jhc8255; 10-13-2010 at 05:18 AM.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Macro to input data from the data input box.

    Hi

    Try
    Please Login or Register  to view this content.
    As the items on Main go to a fixed place, you could format those cells permanently. You really only need the formatting to go on the inserted entry.

    rylo

  5. #5
    Registered User
    Join Date
    06-07-2010
    Location
    california, us
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Macro to input data from the data input box.

    rylo,

    gracias senor

    regards,
    james

+ 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