+ Reply to Thread
Results 1 to 8 of 8

Userform upload data very very slowly to sheets vba

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Userform upload data very very slowly to sheets vba

    Hi all,
    I have made a great progress in excel with the help of this forum & members.
    Currently I have done userform which works fine.
    I have one issues:

    Uploading data to sheets is extremely slow ( takes about 30 secs)
    I suppose finding last row takes much of it.
    Any suggestions to replace 'lastrow' concept?

    OR any other solution please.


    Please help
    Thanks
    Kind regards
    Please Login or Register  to view this content.
    Last edited by Paul; 08-22-2014 at 12:46 PM. Reason: Corrected CODE tags

  2. #2
    Forum Contributor
    Join Date
    01-30-2014
    Location
    England
    MS-Off Ver
    MS Office 2010, 2007, 2003
    Posts
    149

    Re: Userform upload data very very slowly to sheets vba

    Personally, I put application.screenupdating = false/true at the end and beginning of the code
    Please Login or Register  to view this content.
    It stops the screen from updating, flashing, showing you what the computer is doing etc.

  3. #3
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Userform upload data very very slowly to sheets vba

    Hi Aaron092,
    I too tried this but it is not making much difference.
    I think it may be due to the fact it is too long to find last row?
    Any suggestions Please

    K regs

  4. #4
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Userform upload data very very slowly to sheets vba

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,062

    Re: Userform upload data very very slowly to sheets vba

    I think this one it gives you the similar time....
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Last edited by john55; 08-15-2014 at 01:36 PM.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  6. #6
    Spammer
    Join Date
    09-07-2011
    Location
    Vancouver
    MS-Off Ver
    Excel 2003-2007-2010
    Posts
    5

    Re: Userform upload data very very slowly to sheets vba

    Hi,

    Have you tried turning on/off the calculation?

    Gaetan
    Last edited by Paul; 08-22-2014 at 12:46 PM. Reason: Removed advertising link

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Userform upload data very very slowly to sheets vba

    or maybe something like this
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    10-30-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2013
    Posts
    173

    Re: Userform upload data very very slowly to sheets vba

    Quote Originally Posted by KK1234 View Post
    Hi Aaron092,
    I too tried this but it is not making much difference.
    I think it may be due to the fact it is too long to find last row?
    Any suggestions Please

    K regs
    No, that doesn't take any time at all.

    First thing I would say is to set up links from DD to D so you don't have to output the same item in the form twice.

    Second thing, fill in the ControlSource property for each of the controls. This is a string that is the address of the linked cell.

    Third, add an event handler for the Change event on all of the controls and have them write the control Value property to its own ControlSource.
    This way the cells will be updated as you type.

    The third one is optional, but it gives a good feel to the user because the form will update as they type. So will the linked cells.
    If you have an exit button then probably you won't need this to ensure that the linked cells are updated, but I'm not 100% sure about that.
    It can be done the long way: manually type in an event handler for each control. (Which I don't recommend).
    Or like this:

    In a Class Module called cControl...
    Please Login or Register  to view this content.
    In the Form Module...
    Please Login or Register  to view this content.
    Last edited by coolblue; 08-17-2014 at 09:33 PM.

  9. #9
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Userform upload data very very slowly to sheets vba

    Hi everyone,
    Apology to get back so, late. I was away for some reason from excel.
    The solutions have helped a little bit, bot I have now learnt to design userforms which can do better work based on fact of " Less is More"
    Thanks
    Kind regards

+ 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. [SOLVED] Formatting sheets with macro running very slowly
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-21-2012, 10:04 AM
  2. Upload Picture in a Userform
    By yuki0219 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2012, 04:58 AM
  3. Upload Picture in a Userform
    By yuki0219 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2012, 12:53 PM
  4. Imported UserForm runs slowly
    By pnmng49 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2011, 10:39 AM
  5. Userform picture upload.
    By tim_chisman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2011, 11:09 AM

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