Slomaro2000
Board Regular
- Joined
- Jun 4, 2008
- Messages
- 107
Hello,
When I send this workbook the Macros are not coming along with it anymore. It worked fine in the old Excel (we just got 2007). It looks like its being sent as an "xlsx" and should be "xlsm".
Is there a way to modify this to be sent so the macros stay attached?
When I send this workbook the Macros are not coming along with it anymore. It worked fine in the old Excel (we just got 2007). It looks like its being sent as an "xlsx" and should be "xlsm".
Is there a way to modify this to be sent so the macros stay attached?
Code:
SendWorkbook:
ThisWorkbook.ActiveSheet.Copy
ActiveWorkbook.SendMail _
Recipients:=strRecipient, _
Subject:=strSubject, _
returnreceipt:=False
ActiveWorkbook.Close savechanges:=False
GoTo NormalExit
ErrorExit:
MsgBox (strErrMsg)
NormalExit: