VBA code to send email through gmail with pdf attachment
问题 I have this code that is already working, but not 100%... I would like to send an email through Gmail with a pdf attached... But I don´t want a specific pdf file. I know I can put a specific file name on the code, but my pdf files always change the name Example: Clientname_1.pdf, Clientmane_2.pdf, Suppliername_1.pdf, etc The code I have is this, but does not work: Dim objEmail, objConfig Set objEmail = CreateObject("CDO.Message") objEmail.From = "xpto@gmail.com" objEmail.To = Join(Application