i have code in google sheet and i need to set pause timing between per request ,
Please Login or Register to view this content.
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
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.
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]
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
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]
Here is how you would call the sleeper function from within another function:
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.Please Login or Register to view this content.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks