+ Reply to Thread
Results 1 to 6 of 6

Adding rows with every login

  1. #1
    Forum Contributor
    Join Date
    05-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    187

    Adding rows with every login

    Hi Guys,

    I have just started learning Excel Programming and created an userform in which you can enter name and once you click submit. the username and date and time are entered in a relevant row.

    I am unable to add new rows, to be honest I have no clue how to do that as today is the first time I am doing VBA.

    Can anyone let me know how to do it, pasted below is the Code for submit command button

    Code:
    Please Login or Register  to view this content.

    Regards,

    Veejar
    Attached Files Attached Files
    Last edited by veejar; 07-02-2010 at 07:30 AM. Reason: You don't write "Code:" you use the code tags

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

    Re: Adding rows with every login

    Try
    Please Login or Register  to view this content.
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Adding rows with every login

    Try this,

    Please Login or Register  to view this content.
    Or that

  4. #4
    Forum Contributor
    Join Date
    05-14-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    187

    Re: Adding rows with every login

    Thanks a lot guys that really works cool.

    But I have a few more doubts.

    What I want is that when a user tries to open the workbook then excel should always show sheet named "Login History" and the login userform should open and then the user will prompted to enter password in password form.

    The password entered has to be hidden as in say for example password is X01 then it should display *** while the password is being entered.

    Once password is entered and user clicks on the submit command button in password fom then the macro has to check the password entered with the corresponding username as mentioned in sheet named "IDs"

    Once password is verified then the login data should be added to the next row in sheet named "Login History" and not in any other sheet.
    Attached Files Attached Files
    Last edited by veejar; 07-02-2010 at 06:23 AM. Reason: attachment not uploaded previously

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Adding rows with every login

    That would be for another thread, You can mark this thread as solve, give the reputation to whoever you want and then start a new thread with a new question.

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

    Re: Adding rows with every login

    If you do a search (Advanced) on my name you will find a login form example
    Last edited by royUK; 07-02-2010 at 08:00 AM.

+ 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