+ Reply to Thread
Results 1 to 14 of 14

VBA to email on upcoming expiring dates

  1. #1
    Registered User
    Join Date
    10-13-2016
    Location
    Arcadia, Ca
    MS-Off Ver
    2013 Professional
    Posts
    8

    VBA to email on upcoming expiring dates

    Good Morning,

    I was wondering if someone can help me out with this? I have a list of suppliers we would like to send emails out to when the expiring dates are coming up. I would like it to be similar to this. get.sysdate -21. Basically take today's date and kick off email that is set to expire 21 days. Email program of choice is Office 2013 Professional. Can someone please help me???
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-26-2016
    Location
    São Paulo
    MS-Off Ver
    2013
    Posts
    12

    Re: VBA to email on upcoming expiring dates

    Hi!

    I did a plan this way...

    See if helps you..

    If you need help to translate, talk to me ..
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-13-2016
    Location
    Arcadia, Ca
    MS-Off Ver
    2013 Professional
    Posts
    8

    Re: VBA to email on upcoming expiring dates

    Good Morning Rssmith93,

    How can I edit the .xls and translate it to english? Again ty for the help much Appreciated

  4. #4
    Registered User
    Join Date
    09-26-2016
    Location
    São Paulo
    MS-Off Ver
    2013
    Posts
    12

    Re: VBA to email on upcoming expiring dates

    oh, sry ..
    press BD and put the password 250914...

    VBA password is Isa250914

  5. #5
    Registered User
    Join Date
    10-13-2016
    Location
    Arcadia, Ca
    MS-Off Ver
    2013 Professional
    Posts
    8

    Re: VBA to email on upcoming expiring dates

    Im sorry for bugging you but how do I get into the VBA portion to edit it?

  6. #6
    Registered User
    Join Date
    09-26-2016
    Location
    São Paulo
    MS-Off Ver
    2013
    Posts
    12

    Re: VBA to email on upcoming expiring dates

    Press alt + f11, it will open the VBA editor...use frmCadastro to edit the most part of the sheet

  7. #7
    Registered User
    Join Date
    10-13-2016
    Location
    Arcadia, Ca
    MS-Off Ver
    2013 Professional
    Posts
    8

    Re: VBA to email on upcoming expiring dates

    I can't get the email button to work. I am getting the following error "Run-time error '-2147417851 (80010105)' " Im using office 2016

  8. #8
    Registered User
    Join Date
    09-26-2016
    Location
    São Paulo
    MS-Off Ver
    2013
    Posts
    12

    Re: VBA to email on upcoming expiring dates

    I guess you must change the VBA Code that executes the email aplication..

    I'm newbie, and I dont know how to fix this..sorry!

    Maybe others users could help you...

  9. #9
    Registered User
    Join Date
    10-13-2016
    Location
    Arcadia, Ca
    MS-Off Ver
    2013 Professional
    Posts
    8

    Re: VBA to email on upcoming expiring dates

    Does it executes for you?

  10. #10
    Registered User
    Join Date
    09-26-2016
    Location
    São Paulo
    MS-Off Ver
    2013
    Posts
    12

    Re: VBA to email on upcoming expiring dates

    Yes, here its works perfectly...

    but I'm using Office 2013 and Outlook 2013...maybe you can change the configs of the email in VBA, i guess it will solve your problem..

    Look in the web for sending emails by VBA...you'll find something..

    ohh

    try this...
    ON Vba Editor, go to TOOLS > REFERENCES and add Microsoft Outlook...

  11. #11
    Registered User
    Join Date
    10-13-2016
    Location
    Arcadia, Ca
    MS-Off Ver
    2013 Professional
    Posts
    8

    Re: VBA to email on upcoming expiring dates

    One last question I promise. Where are you pulling this from?

    Prezado(a) 5,
    A tarefa 3 da empresa Rose Shore com data limite 4 está Pendente.
    Tarefa Código: 5
    Verifique com urgência!
    Atenciosamente,
    Controle de Tarefas

  12. #12
    Registered User
    Join Date
    09-26-2016
    Location
    São Paulo
    MS-Off Ver
    2013
    Posts
    12

    Re: VBA to email on upcoming expiring dates

    Please Login or Register  to view this content.
    From macro called EnviarEmail..its in formCadastro... just change the texts u want..

    Found it? The sheet is working now?

    You can do how many questions you want, I'll try to help you...i just don't do more 'cause i'm not so good in VBA either in English =P..but i'll try to help, always...

  13. #13
    Registered User
    Join Date
    10-13-2016
    Location
    Arcadia, Ca
    MS-Off Ver
    2013 Professional
    Posts
    8

    Re: VBA to email on upcoming expiring dates

    Ok ty for your help on your VBA main menu you have status with a drop down box. it is set to "Pendente" how can I change that to Pending? Where can I modify that?

  14. #14
    Registered User
    Join Date
    09-26-2016
    Location
    São Paulo
    MS-Off Ver
    2013
    Posts
    12

    Re: VBA to email on upcoming expiring dates

    On VBA project press CTRL + L then substitute every "PENDENTE" on the actual project for the word you want.

+ 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. VBA to email on upcoming expiring dates
    By tflores626 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2016, 10:09 AM
  2. Help with Macro - sending an email based on cell expiring
    By boomTO in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-22-2015, 07:55 PM
  3. Replies: 2
    Last Post: 08-29-2014, 09:19 PM
  4. Replies: 11
    Last Post: 05-04-2014, 08:28 PM
  5. Dates expiring in 30, 60 and 90 days
    By snshyne52 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-18-2013, 07:27 AM
  6. Automatically Send Email when an task is expiring
    By richard@magnumpower in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-19-2013, 07:21 PM
  7. email notification of an upcoming event
    By jeffpanagos in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2013, 07:00 PM

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