Results 1 to 4 of 4

macros run slowly with "ActiveX Button", but run faster with "Form Control Button"

Threaded View

  1. #1
    Registered User
    Join Date
    08-10-2017
    Location
    Brussels
    MS-Off Ver
    2016
    Posts
    2

    Angry macros run slowly with "ActiveX Button", but run faster with "Form Control Button"

    I have a problem of macros running very slowly, with something very strange!

    When I click on ActiveX Button1, it takes for instance 15 seconds to accomplish the following macro :

    Sub CommandButton1_click()   
    
       [my code] [no matter the content of the code, less or more complicated]
    
    End Sub
    The behavior is the same when I run CommandButton1_click() from VBEditor by pressing [F5] key!



    Instead, in the same sheet, I created a "Form Controls" Button that launches the same macro "CommandButton1_click" and now it takes only 2 seconds to run the macro...



    That can be a solution for some of you to improve the execution speed of macros.


    Unfortunately, We can't apply this method for all slow macro.

    I'd like to find the cause and a solution of:

    Why the same macro runs slowly when I click on a "ActiveX" Button (or [F5]) and runs faster when I click on "Form Controls" Button ? very wierd
    Last edited by darigh; 02-10-2024 at 06:10 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 01-09-2019, 02:15 PM
  2. VBA to click the "Open" or "Save" button in Internet Explorer Dialogue Box
    By kimvyp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2019, 12:22 AM
  3. Replies: 15
    Last Post: 09-05-2017, 07:35 PM
  4. [SOLVED] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  5. Replies: 1
    Last Post: 06-09-2014, 04:11 AM
  6. Replies: 1
    Last Post: 10-23-2013, 05:20 PM
  7. Replies: 2
    Last Post: 11-16-2012, 04:35 AM

Tags for this Thread

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