+ Reply to Thread
Results 1 to 9 of 9

Speedup Userform in VBA

  1. #1
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Speedup Userform in VBA

    I have a userform that takes 5+ seconds to save a row. I have tried everything in this http://analystcave.com/excel-improve-vba-performance/ page without success.

    I am thinking that the OFFSET function is slow when writing to the spreadsheet.

    Please Login or Register  to view this content.
    Is there any way to speed up this code? Perhaps without using the OFFSET function?

    I have seen some code that uses cells().

    Please Login or Register  to view this content.
    Thanks in advance

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,136

    Re: Speedup Userform in VBA

    If it takes 5 seconds to write three values to your sheet, then you have something else going on.
    Can you supply your workbook?

  3. #3
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Speedup Userform in VBA

    Thank you for your reply. Unfortunately I can't share the workbook.

    Is the OFFSET function slow?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,136

    Re: Speedup Userform in VBA

    Quote Originally Posted by waimea View Post
    Is the OFFSET function slow?
    Nope.
    Do you have lots of formulae?
    or event code on that sheet?

  5. #5
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Speedup Userform in VBA

    I had put the part where i turn off screenupdating etc in the wrong part. Now it takes 1 second.

    Thank you for your reply!

  6. #6
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Speedup Userform in VBA

    Unfortunately I can't share the workbook.
    why not?
    Please Login or Register  to view this content.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,136

    Re: Speedup Userform in VBA

    Quote Originally Posted by waimea View Post
    Thank you for your reply!
    You're welcome

  8. #8
    Registered User
    Join Date
    08-12-2018
    Location
    India
    MS-Off Ver
    using 2007 and 2010
    Posts
    2

    Re: Speedup Userform in VBA

    Hi

    sub: Filtering combobox and resulting listbox

    I want a userform to filter following items from the list. please help me. this is my first thread so please help.
    all the comboboxes (Dynamic) should be related to each other. and results as filtered data should reflect in listbox.

    Fields
    KFI Operator
    Verify Operator
    KFI Error
    Verify Error

    and the table is as below:

    I have 16 columns:

    Fields is in column 5
    KFI Opt is in 9
    Verify Opt is in 10
    KFI Error is in 13
    Verify Error is in 14.


    Thanks,
    Umesh

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,797

    Re: Speedup Userform in VBA

    chandrau03, your question is not related to this thread.

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Need solution on Excel Printing VBA Speedup
    By shiv_1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2018, 02:53 PM
  2. [SOLVED] Clean and speedup vba code
    By Excelski in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2017, 08:06 AM
  3. SpeedUp and Optimize My Code
    By mwinning8 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-07-2017, 05:25 PM
  4. Speedup VBA and Apply to all visible sheets
    By Paul Cherian in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-08-2016, 02:14 AM
  5. Speedup ActiveX ListBox
    By dgibney in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-04-2015, 12:24 PM
  6. [SOLVED] Speedup VBA not repeat work that was done once already
    By nenadmail in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2012, 06:40 PM
  7. speedup the code for deleting rows
    By maheshwow in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-17-2012, 02:41 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