Results 1 to 20 of 20

Problem with consistent "Application.Wait (Now + TimeValue("0:00:10"))"

Threaded View

JimmyWilliams Problem with consistent... 02-06-2018, 06:31 PM
6StringJazzer Re: Problem with consistent... 02-07-2018, 12:33 AM
JimmyWilliams Re: Problem with consistent... 02-07-2018, 07:15 PM
xlnitwit Re: Problem with consistent... 02-08-2018, 04:57 AM
JimmyWilliams Re: Problem with consistent... 02-08-2018, 04:30 PM
xlnitwit Re: Problem with consistent... 02-08-2018, 04:31 PM
leelnich Re: Problem with consistent... 02-08-2018, 04:46 PM
Zer0Cool Re: Problem with consistent... 02-08-2018, 05:00 PM
xlnitwit Re: Problem with consistent... 02-08-2018, 05:05 PM
leelnich Re: Problem with consistent... 02-08-2018, 05:54 PM
JimmyWilliams Re: Problem with consistent... 02-08-2018, 10:21 PM
xlnitwit Re: Problem with consistent... 02-09-2018, 05:03 AM
JimmyWilliams Re: Problem with consistent... 02-09-2018, 06:03 AM
JimmyWilliams Re: Problem with consistent... 02-09-2018, 07:13 AM
6StringJazzer Re: Problem with consistent... 02-09-2018, 07:34 AM
leelnich Re: Problem with consistent... 02-09-2018, 07:54 AM
JimmyWilliams Re: Problem with consistent... 02-09-2018, 08:20 PM
xlnitwit Re: Problem with consistent... 02-09-2018, 08:28 AM
leelnich Re: Problem with consistent... 02-09-2018, 08:47 AM
Zer0Cool Re: Problem with consistent... 02-09-2018, 03:48 PM
  1. #1
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    405

    Cool Problem with consistent "Application.Wait (Now + TimeValue("0:00:10"))"

    Hi guys,

    Edit: code I am using is at bottom of post.


    I have found that:
     Application.Wait (Now + TimeValue("0:00:10"))
    Seems to not always last the same amount of time. Is "Now" from when I hit the commandbutton, or is it at this step starts?
    How can i make "Now" time stamp from when "this step starts" because I want to display the message for a few seconds, however it seems to give me varying amounts of time.

    Thanks,
    Jimmy


    The "Call DirectorysAndFileExistYorN.CheckFiles" function takes a very long time, a few minutes to run and i think that might be the problem with the "Now".


    Private Sub CommandButton1_Click()
    Application.ScreenUpdating = True
    CommandButton1.Caption = "Loading, Please Wait."
    Application.Wait (Now + TimeValue("0:00:01"))
    Call DirectorysAndFileExistYorN.CheckFiles
    CommandButton1.Caption = "Complete, Files in yellow are misplaced or misnamed."
    Application.Wait (Now + TimeValue("0:00:10"))
    CommandButton1.Caption = "Press to check if files exist."
    End Sub
    Last edited by JimmyWilliams; 02-06-2018 at 06:34 PM.
    Thanks,

    JimmyWilliams

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  5. [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
  6. Application.Wait Now + TimeValue("00:00:10"), but it stops my workbook also.
    By esbenhaugaard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2012, 04:50 PM
  7. Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" not working
    By redders in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2011, 03:52 PM

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