I posted this question here originally http://www.excelforum.com/excel-prog...ml#post4128075 and realized that What I am asking may not be clear so I am basically starting over with the original unmodified codes.
I have a macro (1st code below) that after the "Before" sheet has been updated, it will create a new sheet named "End of Shift Report" and copy the headers over from the before sheet. Then it searches in column A for currentuser and then column B for current date. Once it finds those matches, it pastes only those rows to the end of shift report sheet. All of this works absolutely wonderful.
I have a RangetoHTML function (2nd code below) that I would like to put the end of shift report sheet into the body of the email as HTML. All it does right now is send a blank email with a blank attachment. I don't want an attachment, I want ot to be placed in the email body.
1st code (macro)
2nd code (function)![]()
Please Login or Register to view this content.
Is there a way to integrate the macro code into the function code? Or am I going about this all wrong?![]()
Please Login or Register to view this content.
Bookmarks