+ Reply to Thread
Results 1 to 17 of 17

Google Sheets: sendEmail() with day exceptions

  1. #1
    Registered User
    Join Date
    09-26-2022
    Location
    London, England
    MS-Off Ver
    Microsoft Office 365 2021
    Posts
    21

    Question Google Sheets: sendEmail() with day exceptions

    I was able to send rows from a Google Sheet via e-mail, using the Javascript sendEmail() function. The aforementioned Google Sheet is linked to a Google Form.

    In the sheet, under the column "Recursive_Requests", there are 2 options to send data. I would want that:
    1) if you select "send_every_day" option, the request is sent by e-mail every day;
    2) if you select "send_every_monday", the request remains in the sheet, BUT it is sent only every Monday;
    3) if you select "No", no changes are made.

    Any help would be appreciated!


    Code used --> AppsScript code.pdf
    Google Form --> https://forms.gle/Mxow3DR58yZCoAp48
    Google Sheet --> https://docs.google.com/spreadsheets...it?usp=sharing

    Cross-posted over another forum --> https://stackoverflow.com/questions/...-on-weeks-date
    Last edited by Micheal_Benton; 10-26-2022 at 02:51 PM.

  2. #2
    Registered User
    Join Date
    09-26-2022
    Location
    London, England
    MS-Off Ver
    Microsoft Office 365 2021
    Posts
    21

    Re: Google Sheets: iterative condition with sendEmail()

    Please, refresh. For any problems, I'm available to help.

  3. #3
    Registered User
    Join Date
    09-26-2022
    Location
    London, England
    MS-Off Ver
    Microsoft Office 365 2021
    Posts
    21

    Re: Google Sheets: iterative condition with sendEmail()

    Please, refresh. For any problems, I'm available to help.

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Google Sheets: sendEmail() with day exceptions

    Well over 400 views and no offers of help suggests that there isn't anyone here who can help you or that your query is unclear. Sorry.
    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.

  5. #5
    Registered User
    Join Date
    09-26-2022
    Location
    London, England
    MS-Off Ver
    Microsoft Office 365 2021
    Posts
    21

    Re: Google Sheets: sendEmail() with day exceptions

    Hi AliGW, thanks for your reply. So what can I do? I have to move my question to another forum?

  6. #6
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Google Sheets: sendEmail() with day exceptions

    It's in the right place.

    If you want to ask the same question on a third party forum, then it's fine to do so, as long as you share a link to that forum and your question on it here.

  7. #7
    Registered User
    Join Date
    09-26-2022
    Location
    London, England
    MS-Off Ver
    Microsoft Office 365 2021
    Posts
    21

    Re: Google Sheets: sendEmail() with day exceptions

    I'm happy with this forum, the kind help offered by the volunteers is precious. I'd hate to ask again on another platform, each one has its own rules.
    Won't I find a solution on this forum at all?

  8. #8
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Google Sheets: sendEmail() with day exceptions

    I don't know - I am just pointing out that MANY members have viewed your post over a week and NOT ONE person has offered help. This is very, very rare and suggests that nobody is in a position to help you.

    There is nothing more I can do to help you. It's up to you whether you ask somewhere else or not: all we ask is that you tell us if you do.

  9. #9
    Registered User
    Join Date
    09-26-2022
    Location
    London, England
    MS-Off Ver
    Microsoft Office 365 2021
    Posts
    21

    Re: Google Sheets: sendEmail() with day exceptions

    My question was quite simple, frankly. Most of the code was already written, it was only a matter of adding a small feature.
    Thanks for your help, anyway. I'll try to ask on another forum and I'll see if I have more luck.

  10. #10
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Google Sheets: sendEmail() with day exceptions

    Maybe it is - maybe there just isn't anyone here among the 400+ who've viewed your thread that uses AppScript code. I cannot magic up a helper for you - sorry.

  11. #11
    Registered User
    Join Date
    09-26-2022
    Location
    London, England
    MS-Off Ver
    Microsoft Office 365 2021
    Posts
    21

    Re: Google Sheets: sendEmail() with day exceptions

    No problem. Thanks for your kind clarification. I'll point to this forum in case of a cross-posting.

  12. #12
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Google Sheets: sendEmail() with day exceptions

    Thank you.

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Google Sheets: sendEmail() with day exceptions

    Suggest you try here: https://groups.google.com/g/google-a...ript-community


    I suspect it's not that difficult for someone familiar with Google AppScript.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  14. #14
    Registered User
    Join Date
    09-26-2022
    Location
    London, England
    MS-Off Ver
    Microsoft Office 365 2021
    Posts
    21

    Re: Google Sheets: sendEmail() with day exceptions

    Thank for your suggestion, TMS! I've just asked there my question and added to this thread the link to flag the cross-posting.
    I hope to have more luck.

  15. #15
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Google Sheets: sendEmail() with day exceptions

    Good luck and thanks for providing the cross post link.

  16. #16
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Google Sheets: sendEmail() with day exceptions

    Good luck - let us know how you get on.

    Bear in mind going forward that ExcelForum is predominantly still a forum for Excal and Microsoft VBA, so it's better to find a specialist forum for Google-based stuff.

  17. #17
    Registered User
    Join Date
    09-26-2022
    Location
    London, England
    MS-Off Ver
    Microsoft Office 365 2021
    Posts
    21

    Re: Google Sheets: sendEmail() with day exceptions

    Hi all,
    I just wanted to inform you that the problem has been successfully solved. For clarity, I've updated the post's status to [SOLVED].

    Thanks for your suggestions, though!

+ 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] Execution of AppsScript trigger with date exceptions
    By Micheal_Benton in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 10-12-2022, 10:44 AM
  2. [SOLVED] Current Term Code and Weekly Assignments
    By crazyforexcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-10-2020, 11:03 AM
  3. Goal Seek doesn't run on iterative code
    By skipnick in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2018, 01:49 AM
  4. VB Code to summarize weekly Sales
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-16-2014, 03:52 PM
  5. Iterative code stops right after 1st step
    By AtulSwamy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2014, 12:21 PM
  6. Replies: 3
    Last Post: 11-19-2010, 06:26 AM
  7. Problem with Iterative Code, Excel Precision, or my maths??
    By Phil_V in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-19-2009, 09:59 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