When I run code Send_Range_Or_Whole_Worksheet_with_MailEnvelope() it works correctly. But when I run code TestCopyData it mails whole works sheet (tomail) instead of A1:G170 which is defined in Send_Range_Or_Whole_Worksheet_with_MailEnvelope(). In TestCopydata I have mentioned Application.Run "'copy from one sheet to anotherand mail vba.xlsm'!Send_Range_Or_Whole_Worksheet_with_MailEnvelope()". I am new to VBA, I could not trace out where the error is. Your help would be great and appreciated.
Please Login or Register to view this content.
Please Login or Register to view this content.
Please Login or Register to view this content.
Bookmarks