Hello everybody,
First of, please note that I am quite new at VBA coding and thus have extremely limited experience here.
I am currently trying to create an Excel workbook where customers can fill in their orders and "Submit" this to by pressing a button after which the order is sent by email to me.
I was figuring that the best way to do so would be to create a command button linked to a macro. However, this seems to be extremely difficult and I have naturally tried googling this to find solutions. Most of the solutions I found were able to create macros that sent out emails, but not emails that included the excel file as an attachment too.
In order to include the excel file as an attachment, I found the following link: Using Excel VBA to Send Emails with Attachments - wellsr.com which apparently should have solution
However, when I try to run this macro in my own excel file, it comes with the following error:
Does anybody here have any idea how I can fix this or provide a better solution to my problem? It would truly be much appreciated!
Thank you so much for your time, whoever may have read this.
Best regards,
David
First of, please note that I am quite new at VBA coding and thus have extremely limited experience here.
I am currently trying to create an Excel workbook where customers can fill in their orders and "Submit" this to by pressing a button after which the order is sent by email to me.
I was figuring that the best way to do so would be to create a command button linked to a macro. However, this seems to be extremely difficult and I have naturally tried googling this to find solutions. Most of the solutions I found were able to create macros that sent out emails, but not emails that included the excel file as an attachment too.
In order to include the excel file as an attachment, I found the following link: Using Excel VBA to Send Emails with Attachments - wellsr.com which apparently should have solution
However, when I try to run this macro in my own excel file, it comes with the following error:
Does anybody here have any idea how I can fix this or provide a better solution to my problem? It would truly be much appreciated!
Thank you so much for your time, whoever may have read this.
Best regards,
David