?
Solved

copy user selected range into a new worksheet

Posted on 2010-01-12
5
Medium Priority
?
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

771 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