+ Reply to Thread
Results 1 to 4 of 4

pop up "loading"

Hybrid View

  1. #1
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    pop up "loading"

    I have a dashboard that updates information form a raw file that opens and hides alongside it.

    Is there a way I can have a pop up (message box type thing) that is a sort of "loading" screen so that users dont try do anything whilst calculations are being performed.

    (excel 2007 the calculation thing at the bottom isn't enough )

    what i mean is i have a progress bar that just looks good! I need one that updates WITH calculation bar if possible. Or loads in the front whilst calculating.
    Last edited by Raanan; 10-15-2013 at 05:41 AM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: pop up "loading"

    A modeless userform would do what you want.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: pop up "loading"

    oh.. right..

    ha ok..

    I can read up on specifically what that means..

    I assume it will pop up whilst XL does its things then close when done (or when I set it)

  4. #4
    Registered User
    Join Date
    07-19-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 2007
    Posts
    89

    Re: pop up "loading"

    Ok slight problem. the code im using for it keeps bringing an error if i try modeless

    Sub Main()
        Dim Counter As Integer
        Dim RowMax As Integer, ColMax As Integer
        Dim r As Integer, c As Integer
        Dim PctDone As Single
        
        Application.ScreenUpdating = False
        
        ' Initialize variables.
        Counter = 1
        RowMax = 100
        ColMax = 25
    
        ' Loop through cells.
        For r = 1 To RowMax
            For c = 1 To ColMax
                'Put a random number in a cell
                Cells(r, c) = Int(Rnd * 1000)
                Counter = Counter + 1
            Next c
    
            ' Update the percentage completed.
            PctDone = Counter / (RowMax * ColMax)
    
            ' Call subroutine that updates the progress bar.
            UpdateProgressBar PctDone
        Next r
        ' The task is finished, so unload the UserForm.
        Unload UserForm1
    End Sub
    
    Sub UpdateProgressBar(PctDone As Single)
        With UserForm1
    
            ' Update the Caption property of the Frame control.
            .frameprogress.Caption = Format(PctDone, "0%")
    
            ' Widen the Label control.
            .labelprogress.Width = PctDone * _
                (.frameprogress.Width - 10)
        End With
    
        ' The DoEvents allows the UserForm to update.
        DoEvents
    End Sub
    Run-time error '50290': Method 'ScreenUpdating' of object '_Application' failed...



    I guess I cant have modeless and the progress bar to update like that?

    Whats the best way for it

+ 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] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  2. Cause of "Error in Loading DLL" message
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2009, 08:04 PM
  3. "Error in loading DLL", VB6 ActiveX DLL
    By Scott in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-13-2006, 10:45 PM
  4. [SOLVED] "error loading DLL" message
    By SteveH in forum Excel General
    Replies: 0
    Last Post: 01-16-2006, 05:00 AM
  5. [SOLVED] How do I fix "error loading add-ins" when I open Excel?
    By tracey@davis-ray in forum Excel General
    Replies: 1
    Last Post: 01-24-2005, 09:06 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