+ Reply to Thread
Results 1 to 15 of 15

Transfer from UserForm to table is super slow

  1. #1
    Registered User
    Join Date
    01-13-2019
    Location
    Utah
    MS-Off Ver
    2016
    Posts
    10

    Transfer from UserForm to table is super slow

    I'm relatively new to VBA and this is the fourth Form I create but for some reason, the data transfer is taking too long. I've included my file for review. Also, for some reason, I can't attach the file to this post. Please advise.

    Thanks,
    An
    Attached Files Attached Files
    Last edited by agarcia.nd; 01-13-2019 at 10:22 PM.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Transfer from UserForm to table is super slow

    This will speed up things.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    01-13-2019
    Location
    Utah
    MS-Off Ver
    2016
    Posts
    10

    Re: Transfer from UserForm to table is super slow

    bakerman2, Thank you for the consice version you provided. I've added the code and it does clear the data from the form quickly but it does not insert the data to the table.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Transfer from UserForm to table is super slow

    Yes, it does. The problem that there's data around row 3400 and it writes below that.
    Make sure all data is cleared from your worksheet below the table.

  5. #5
    Registered User
    Join Date
    01-13-2019
    Location
    Utah
    MS-Off Ver
    2016
    Posts
    10

    Thumbs up Re: Transfer from UserForm to table is super slow

    Got it! Awesome! Thank you for your help.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Transfer from UserForm to table is super slow

    Glad to help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  7. #7
    Registered User
    Join Date
    01-13-2019
    Location
    Utah
    MS-Off Ver
    2016
    Posts
    10

    Re: Transfer from UserForm to table is super slow

    I've added two new textboxes after combobox 3 and 4. The labels and texbox show in the userform but the data is not transfering to the form. Help or direction would be appreciated.

    Thanks

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Transfer from UserForm to table is super slow

    Please Login or Register  to view this content.
    Does adding these 2 lines help ?
    Make sure the TextBoix numbers are correct.

  9. #9
    Registered User
    Join Date
    01-13-2019
    Location
    Utah
    MS-Off Ver
    2016
    Posts
    10

    Re: Transfer from UserForm to table is super slow

    With Application
    .ScreenUpdating = False
    .Calculation = xlCalculationManual
    End With
    With Worksheets("Data (Daily)")
    Rowcount = .Range("A" & .Rows.Count).End(xlUp).Row + 1
    For i = 1 To 8
    .Cells(Rowcount, i).Value = Me("TextBox" & i).Value
    Next
    .Cells(Rowcount, 9).Value = Me.ComboBox1.Value
    .Cells(Rowcount, 10).Value = Me.ComboBox2.Value
    For i = 11 To 15
    .Cells(Rowcount, i).Value = Me("TextBox" & i - 2).Value
    Next
    .Cells(Rowcount, 16).Value = ComboBox3.Value
    .Cells(Rowcount, 17).Value = ComboBox4.Value
    .Cells(Rowcount, 18).Value = TextBox14.Value
    .Cells(Rowcount, 19).Value = TextBox15.Value

    End With


    Call resetForm
    With Application
    .ScreenUpdating = True
    .Calculation = xlCalculationAutomatic
    End With



    End Sub

    I get an error message (424).

  10. #10
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Transfer from UserForm to table is super slow

    Please use Code Tags when posting code.

    Post the new workbook with extra textboxes.

  11. #11
    Registered User
    Join Date
    01-13-2019
    Location
    Utah
    MS-Off Ver
    2016
    Posts
    10

    Re: Transfer from UserForm to table is super slow

    Here it is.
    Attached Files Attached Files

  12. #12
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Transfer from UserForm to table is super slow

    Like I already said.
    Make sure the TextBox numbers are correct.
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    01-13-2019
    Location
    Utah
    MS-Off Ver
    2016
    Posts
    10

    Re: Transfer from UserForm to table is super slow

    Got it. I didn't realize my TextBox sequence was missing 14. Also, although it does enter the data now, my tab button cycles through my command buttons before landing on the last to textboxes.

    thanks!

  14. #14
    Registered User
    Join Date
    01-13-2019
    Location
    Utah
    MS-Off Ver
    2016
    Posts
    10

    Re: Transfer from UserForm to table is super slow

    I figured out how to arrange my tab sequence. Thanks again for helping me through this learning process! You rock!

  15. #15
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Transfer from UserForm to table is super slow

    Good for you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. .ChangeLink SUPER Slow - Need advice or alternative
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-05-2018, 01:42 PM
  2. [SOLVED] VBA countifs super slow
    By Gekko42 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-03-2016, 04:35 AM
  3. Super Slow Excel
    By graemearthur in forum Excel General
    Replies: 12
    Last Post: 12-23-2015, 03:38 PM
  4. General help simplifying my super slow VB code PLEASE :-D
    By blackcat_78uk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2015, 05:22 PM
  5. [SOLVED] Need help with an excel file that is super slow and crashes a lot.
    By regorih in forum Excel General
    Replies: 6
    Last Post: 01-14-2014, 07:23 PM
  6. Tons of Arrays = Super Slow Calculating
    By danmarsh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2012, 01:52 PM
  7. speeding up code that is super slow
    By cabinetguy in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 05-19-2011, 12:24 PM

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