Consulting

Results 1 to 4 of 4

Thread: Solved: Help

  1. #1
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location

    Solved: Help

    Hello all,
    I have a spreadsheet that I have to date spread out all the columns, and on the rows i have name.
    I have a userform. The userform consist of 2 textbox, the date, and # missing. and 1 combo box.
    My question is:
    1. How to I get the date textbox to display today's date. =now will also display the time. Is there one that can that I can use to just get today. In excel i use today() but doesn't seem to work in VBA.
    2. The Combox box, I want it to display all the text listed in row "A". Can you guys help me come up with the code so that when people entered in the number of missing, they press enter, it will go to the right cell of the date and the name.
    3. In addition. I want a little security, is it possible to make it so that when when they press enter, a box pop up asking for a code and they have to enter the correct code which is listed in column B.

    Example (from my attached file)
    if I go in and use it today, which is 12/15/08, the name i selected is Joe, and I input 3 for # missing. when I pressed enter command botton, a box will appear asking for a code and the code for joe is 184 (Colum B), if the code is entered correct, 3 will be placed in Cell C4.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by chungtinhlak
    I have a spreadsheet that I have to date spread out all the columns, and on the rows i have name.
    I have a userform. The userform consist of 2 textbox, the date, and # missing. and 1 combo box.
    My question is:
    1. How to I get the date textbox to display today's date. =now will also display the time. Is there one that can that I can use to just get today. In excel i use today() but doesn't seem to work in VBA.
    Date

    Quote Originally Posted by chungtinhlak
    2. The Combox box, I want it to display all the text listed in row "A". Can you guys help me come up with the code so that when people entered in the number of missing, they press enter, it will go to the right cell of the date and the name.
    Not sure what you are aksing here?

    Quote Originally Posted by chungtinhlak
    3. In addition. I want a little security, is it possible to make it so that when when they press enter, a box pop up asking for a code and they have to enter the correct code which is listed in column B.

    Example (from my attached file)
    if I go in and use it today, which is 12/15/08, the name i selected is Joe, and I input 3 for # missing. when I pressed enter command botton, a box will appear asking for a code and the code for joe is 184 (Colum B), if the code is entered correct, 3 will be placed in Cell C4.
    I have just had a look at the file, and there is no code at all, just a simple form. So you haven't tried to do anything, just expect us to do it all for you?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location
    Xld, I didn't mean it that way. It just that i don't know how to do this at all, if you can give me a sample coding or a place for me to start. On this, all i know is how to set the combobox's default value.

    so if you can help guide me on any of this, I would really appreciate it.

    thanks

  4. #4
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location
    sorry, i will start a new thread and make it cleaner.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •