Results 1 to 6 of 6
  1. #1
    ry94080 is offline Novice
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2019
    Posts
    29

    Microsoft Edge Progress Bar?

    Hello,



    I had the following code working with Internet Explorer, which was a visual prompt to the user that a process was occuring in the background. Now that Internet Explorer is end of life, our company is now replacing with Microsoft Edge.

    Is there a way to accomplish the same thing with Edge?

    Code:
    Function DisplayProgress(stage)Dim script
    'Here is a phony progress bar that uses an IE Window
    Set x = CreateObject("internetexplorer.application")
    Set script = CreateObject("wscript.shell")
    ''in code, the colon acts as a line feed
    x.navigate2 "about:blank": x.Width = 350: x.Height = 80: x.Toolbar = False: x.MenuBar = False: x.StatusBar = False: x.Visible = True
    
    
    x.Document.write "<font color=blue>"
    For n = 1 To 100
        x.Document.write "|"
        wscript.sleep 20
        x.Document.title = "Process: " & n & " %"
    Next
    stage = stage + 1
    'close the window
    x.Quit
    Set x = Nothing
    DisplayProgress = stage
    
    
    End Function

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,397
    about to go into a meeting - but why do it that way? why not just make your own progress bar? requires one or two box controls depending on the look you want and similar code. Plenty of examples about

  3. #3
    ry94080 is offline Novice
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2019
    Posts
    29
    My VBscript basically is copying over a MSACCESS database locally to the user so that it is not launched over the network.

    When they double click the vbscript, i want to show that there is activity happening in the background. If they don't see activity, sometimes they keep clicking, which launches the app mulitple times

  4. #4
    ry94080 is offline Novice
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2019
    Posts
    29
    Essentially, looking to build a fake VBscript progress bar. Any ideas?

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,397
    just googled your question and came up with a number of links including this
    https://stackoverflow.com/questions/...ar-in-vbscript

  6. #6
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    Why make this unnecessarily complex?

    For a simple progress bar for use when copying files over a network, use a Windows API.
    For details including all required code, see my article: https://www.isladogs.co.uk/api-file-copy/

    If you want a progress bar for other purposes. see this article for full details: https://www.isladogs.co.uk/progress-bar/
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. open ms edge with a specific account
    By diegomarino in forum Access
    Replies: 20
    Last Post: 07-16-2022, 04:06 PM
  2. Make an excel from an ms edge web select
    By diegomarino in forum Access
    Replies: 9
    Last Post: 06-28-2022, 10:54 AM
  3. Replies: 4
    Last Post: 03-27-2017, 02:11 PM
  4. Microsoft Edge and this forum
    By gem1204 in forum Access
    Replies: 3
    Last Post: 04-07-2016, 06:20 PM
  5. Replies: 31
    Last Post: 06-19-2012, 03:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums