Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

copy user selected range into a new worksheet

Posted on 2010-01-12
5
Medium Priority
?
278 Views
Last Modified: 2012-05-08
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
0
Comment
Question by:kmgingee
  • 3
  • 2
5 Comments
 
LVL 59

Expert Comment

by:Saurabh Singh Teotia
ID: 26295325
I believe this is what you are looking for.
http://www.rondebruin.nl/mail/folder1/mail4.htm
Saurabh...
0
 

Author Comment

by:kmgingee
ID: 26295439
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
0
 
LVL 59

Expert Comment

by:Saurabh Singh Teotia
ID: 26295561
When you mean specify, You meant to say email id or the body..?
0
 

Accepted Solution

by:
kmgingee earned 0 total points
ID: 26295657
i found the solution :)

http://support.microsoft.com/kb/816644


but thanks saurabh for taking the time :)
0
 
LVL 59

Expert Comment

by:Saurabh Singh Teotia
ID: 26295718
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...
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question