kmgingee
asked on
copy user selected range into a new worksheet
Hi:
I have a question: I am new to VBA and I am interested in the follows:
I have a workbook called "work.xls" and a worksheet "vacation".I want to write a macro that allows me to do the following:
when I select a range in the worksheet "vacation" : it must generate a new worksheet with my selected range(and this new worksheet I want to send as a email)
Thnaks someone please guide me on this
Regards
Arun
I have a question: I am new to VBA and I am interested in the follows:
I have a workbook called "work.xls" and a worksheet "vacation".I want to write a macro that allows me to do the following:
when I select a range in the worksheet "vacation" : it must generate a new worksheet with my selected range(and this new worksheet I want to send as a email)
Thnaks someone please guide me on this
Regards
Arun
ASKER
Thanks Saurabh,
This was very helpful indeed! but the email is hardcoded:I do not want that:I wnat the user to be able to specify the email without having to change,is there a way to do it?
Thanks again
This was very helpful indeed! but the email is hardcoded:I do not want that:I wnat the user to be able to specify the email without having to change,is there a way to do it?
Thanks again
When you mean specify, You meant to say email id or the body..?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In the link i give to you, if you refer to this line of the code...
.SendMail "ron@debruin.nl", _
"This is the Subject line"
This is where you need to mentioned the email address.
Saurabh...
.SendMail "ron@debruin.nl", _
"This is the Subject line"
This is where you need to mentioned the email address.
Saurabh...
http://www.rondebruin.nl/mail/folder1/mail4.htm
Saurabh...