Simple User Form Macro Runs Very Slow for Some Users

emailcolink

New Member
Joined
Mar 31, 2015
Messages
37
Hello,

I have a problem with a simple macro that launches a user form before saving that is running very slowly for some users.

Code:
'Code to reset the workbook view back to a default setting
    
    Application.ScreenUpdating = False
        
    Sheets("Regulatory CEs").Select
        
    ActiveWindow.FreezePanes = False
        
    Range("K10").Select
    ActiveWindow.FreezePanes = True
        
    Range("C1").EntireColumn.Hidden = True
    Range("D1").EntireColumn.Hidden = True
    Range("E1").EntireColumn.Hidden = True
        
    Range("A1").EntireColumn.Hidden = False
    Range("B1").EntireColumn.Hidden = False
    Range("F1").EntireColumn.Hidden = False


    'Code to launch userform that will capture approval information
    
    With frmApproval
        .StartUpPosition = 0
        .Left = Application.Left + (0.5 * Application.Width) - (0.5 * .Width)
        .Top = Application.Top + (0.5 * Application.Height) - (0.5 * .Height)
        .Show
    End With
    
    
    Application.ScreenUpdating = True


For some reason, it takes some systems 10-15 minutes to display the user form. Also, apparently this problem does not occur the user opens Word first.

I am using Excel 2007, and they are on 2013. Thoughts?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,215,579
Messages
6,125,646
Members
449,245
Latest member
PatrickL

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top