+ Reply to Thread
Results 1 to 6 of 6

add timing to formula

  1. #1
    Registered User
    Join Date
    10-08-2023
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    35

    Post add timing to formula

    i have code in google sheet and i need to set pause timing between per request ,
    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 11-04-2023 at 03:59 PM. Reason: please use code tags

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,448

    Re: add timing to formula

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Guideline #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,089

    Re: add timing to formula

    Try adding SpreadsheetApp.flush()

    This finalises the previous work before the next continues.

    If this doesnt work (for example in cases where files are being created in the background), then try adding a "sleeper" function to flush, pause for few seconds (to allow file creation to do its thing), followed by another flush. Like this:

    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 11-04-2023 at 03:59 PM. Reason: please use code tags
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  4. #4
    Registered User
    Join Date
    10-08-2023
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    35

    Post Re: add timing to formula

    thanks brother [janmorris for your support i added the full formula as below but not work or can edit full formula and send me again

    Please Login or Register  to view this content.
    Last edited by mohamedabdo; 11-04-2023 at 04:13 PM. Reason: add tags

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,758

    Re: add timing to formula

    To all participants:

    Administrative Note:

    You should include code tags around your code. This has already been noted by Ali and ignored.

    I have added the tags.

    Although you are not subject to penalties for not using code tags, they are essential in readability of your code. Please see Forum Guideline #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,089

    Re: add timing to formula

    Here is how you would call the sleeper function from within another function:

    Please Login or Register  to view this content.
    HOWEVER, it seems you have only given a part of your script, so it is doubtful that the above method will work. Instead, you should be calling the sleeper function within the loop of your other function that is calling the FETCH function.

    I suggest you try posting an enquiry to the Google Apps Script group... keep in mind that you should provide enough of yoru full script so that others can understand what is actually happening.

    Here is the link to the Group:
    https://groups.google.com/g/google-a...ript-community

+ 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. Need help in Formula to get the Timing of whole process..
    By slatif in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 04-25-2023, 03:36 AM
  2. [SOLVED] Need help in finding any formula to get difference of IN and OUT timing
    By Waqas Gul in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-26-2022, 10:39 AM
  3. [SOLVED] Categorizing and Timing Formula
    By idontexcelinexcel in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-18-2017, 02:42 AM
  4. [SOLVED] Formula to sum timing with off in cell
    By Liz_Biz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-29-2014, 12:25 PM
  5. Formula for calculating duration between two timing
    By Kuttisankaran in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2014, 06:27 AM
  6. Need a Formula for the calculation of TAT timing
    By Manish_Gupta in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2013, 12:35 AM
  7. formula for timing difference
    By kaustubhghag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2008, 09:46 AM

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