Link to home
Start Free TrialLog in
Avatar of kmgingee
kmgingeeFlag for United States of America

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
Avatar of Saurabh Singh Teotia
Saurabh Singh Teotia
Flag of India image

I believe this is what you are looking for.
http://www.rondebruin.nl/mail/folder1/mail4.htm
Saurabh...
Avatar of kmgingee

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
When you mean specify, You meant to say email id or the body..?
ASKER CERTIFIED SOLUTION
Avatar of kmgingee
kmgingee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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...