Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7083345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:10:00+00:00 2026-05-28T07:10:00+00:00

Is it possible to freeze Excel while I process something ? I am using

  • 0

Is it possible to freeze Excel while I process something ? I am using 2007. I know already that freezing the update of the sheets from VBA is possible, but I’m looking for a little freeze of the whole thing (with a wait cursor and maybe something nice, like darkening the window or something) .

Has anyone ever tried such thing from VBA ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:10:00+00:00Added an answer on May 28, 2026 at 7:10 am

    Has anyone ever tried such thing from VBA ?

    Yes. Depending on the kind of processing that I am doing either I hide the entire Excel Application or show a userform with a progress update to avoid any user interference

    Example 1 (Hiding The Application)

    Option Explicit
    
    Sub Sample()
        Application.Visible = False
    
        '~~> Rest of the code
    
        Application.Visible = True
    End Sub
    

    Example 2 (Using a Userform which has the ‘X’ disabled)

    Create a Userform and place this code there

    Option Explicit
    
    Private Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, _
    ByVal wFlags As Long) As Long
    
    Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long
    
    Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, _
    ByVal lpWindowName As String) As Long
    
    Private Const MF_BYPOSITION = &H400&
    
    Private Sub UserForm_Initialize()
        Dim lHwnd As Long
    
        lHwnd = FindWindow("ThunderDFrame", "Please Wait...")
    
        Do While lHwnd = 0
            lHwnd = FindWindow("ThunderDFrame", "Please Wait...")
            DoEvents
        Loop
    
        RemoveMenu GetSystemMenu(lHwnd, 0), 6, MF_BYPOSITION
    End Sub
    
    '~~> The below code will not be there
    '~~> This is just there so that if you try the above code then you can exit the form
    Private Sub UserForm_Click()
        Unload Me
    End Sub
    

    And the usage will be like this

    Option Explicit
    
    Sub Sample()
        UserForm1.Show vbModeless
    
        '~~> Rest of the code
    
        Unload UserForm1
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How do you send email from a Java app using Gmail? How
Is it possible to freeze CPU usage that is shown in in Windows Task
Is it possible with a WPF datagrid to do like in Excel and Freeze
Using MonoTouch.Dialog is it possible to freeze the first/top row (like a table header)?
I know I can use ReadKey for that but it will freeze the app
Possible Duplicate: Singleton: How should it be used Following on from Ewan Makepeace 's
I wonder if it is possible for me to freeze or disable the entire
It's possible that I'm not really understanding how git works here, but I have
Is it possible to run a wxApp from another wxApp? I am trying to
Possible Duplicate: What's the point of freezing your Rails version/gems? What does it mean

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.