Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Sending Data From User Form To First Empty Row Of Sheets

  1. #11
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    12
    Hi Bakerman

    Thank you .. very good and i like your version.are you a programmer or have you taught yourself VBA

    I am not very experienced yet at code but can the Time Off and Time On accept a number.I put in say 30 for Time On and 30 for Time Off but it shows 0.00 in the spreadsheet they are transferred to?

    Also can there be a pop up message that a comment also must be made before sending the info

    Best Regards

    Paul

  2. #12
    Moderator
    Join Date
    Jul 2012
    Posts
    156
    Rep Power
    13
    Dear Paul

    No, i'm self taught and learning heaps more every day. My username explains my profession clearly I guess

    To include Comments with the mandatory fields goto userform designmode and select Textbox5 (comments box). Then in the Propertieswindow(bottom left window) scroll down to the Tag-property and put your message between double-quotes. Check the other objects for comparison. When sending all data the Comments-field is included in the Check Userinput loop of the code.

    About your other question, what do Time - On and Time- Off represent ? Is it actual times or ... ? What do you want to see on your spreadsheet when 30 or another number is put in and data is transferred ?

    I apologize for not immediatly understanding your question but English is not my native language and it's a bit rusty (quite a few years done with school so )

    Regards

  3. #13
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    12
    Thank you Bakerman

    Please see attached.I entered in the userform 30 for Time On and 50 for Time Off but it displays 0.00 and 0.00 for Greg

    Thank you again

    Paul
    Attached Files Attached Files

  4. #14
    Moderator
    Join Date
    Jul 2012
    Posts
    156
    Rep Power
    13
    OK, but what do you actually wanna see on your spreadsheet when you enter these numbers ?? It's probably a simple format issue but which format do you require ??

  5. #15
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    12
    If i put 30 in the userform for Time Off i then want to see 30 in the spreadsheet for Time Off.....if i put 50 in userform for Time On then i want to see 50 in the spreadsheet for Time On...thanks

  6. #16
    Moderator
    Join Date
    Jul 2012
    Posts
    156
    Rep Power
    13
    Code:
           .Cells(.Cells(.Rows.Count, "B").End(xlUp).Row + 1, 2).Resize(, 7) = Array(ComboBox1.Value, CInt(TextBox1.Text), _
                TextBox3.Text, ComboBox3.Value, ComboBox4.Value, CInt(TextBox5.Text), TextBox4.Text)

  7. #17
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    12
    Thanks bakerman for all your help

  8. #18
    Junior Member
    Join Date
    May 2013
    Posts
    11
    Rep Power
    0
    Dear Bakerman,

    Nice to see you again ;-)

    Kindly find the attached file, I had prepared a Username and password form and what I want is ((to show the Userform once the file opened)) !!
    Please note that the default user name is Fox and the Default Password is aa

    Thank you in advance for your usual support.
    Attached Files Attached Files

  9. #19
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    14
    If you want to show user form once the file opened you just need to do:

    1. Press Alt + F11 to go to VBA window
    2. Left hand side there is Project explorer window if you can't see it press Ctrl + R
    3. Double Click on ThisWorkBook and paste below code


    Code:
    Private Sub Workbook_Open()
    
        UserForm1.Show
    
    End Sub

  10. #20
    Junior Member
    Join Date
    May 2013
    Posts
    11
    Rep Power
    0

    Staff Details Form

    Thank you LalitPandey87

    I have another issue:

    Kindly be informed that I want to prepare enquiry form for staff detais, and I faced a problem with importing data from the listbox to the textboxes !! Also I don't konw hoe enable modifications and export the modified fields to the sheet again.

    Please have a look to the attached file which include the from with some more detais about my needs.

    I really appreciate your kind efforts

    Thank you

    M. Sabra
    Attached Files Attached Files

Similar Threads

  1. Replies: 5
    Last Post: 07-11-2013, 07:31 AM
  2. Delete Entire Row For All Empty Cells In Column
    By johnreid7477 in forum Excel Help
    Replies: 4
    Last Post: 06-15-2013, 05:50 AM
  3. Macro sending with mailto linkup to other sheets
    By ragil.yudy in forum Excel Help
    Replies: 2
    Last Post: 10-23-2012, 02:42 PM
  4. Replies: 2
    Last Post: 09-24-2012, 11:19 PM
  5. Adding A Menu Bar To A User Form
    By Rasm in forum Excel Help
    Replies: 14
    Last Post: 05-05-2011, 04:05 AM

Posting Permissions

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