+ Reply to Thread
Results 1 to 10 of 10

vba problem copy paste and email

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    birmingham
    MS-Off Ver
    Excel 2007
    Posts
    28

    vba problem copy paste and email

    can anybody Please help with the problem I have - I have got the work book to run fine it does what I wanted but now I have to send a copy via e-mail but I don't want to send all the work book just the copyreport sheet. (I have added some sample data to the form (if you click the enter the sheet will transfer info over if this happens just put any info in it)) is it possible to select the 'copyreport' sheet - open a new work book - remove sheet 2 and 3 - paste the info into sheet 1 - then save the new work book as the date(this will the date the report was raised) - then e-mail the new work off - then close the new work book. I know this is a big ask so any help would be much appreciated....
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: vba problem copy paste and email

    Hi

    you want to sent only copyreport tab right
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    03-04-2013
    Location
    birmingham
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: vba problem copy paste and email

    hello Naveed yes just that tab

  4. #4
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: vba problem copy paste and email

    try this attache file and let me know
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-04-2013
    Location
    birmingham
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: vba problem copy paste and email

    hello raveed sorry about the confusion got it working now - next problem is - if I send 2 over on the same day it wants to over right the first one sent is there a way of doing it but give each copyreport a unique name or number ?
    Last edited by steveg666; 01-17-2014 at 09:59 AM.

  6. #6
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: vba problem copy paste and email

    now try this updated sheet.

    just open the workbook & press Alt+F11 and goto Module 1 & change the Mail id to whom you want to send at red line

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-04-2013
    Location
    birmingham
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: vba problem copy paste and email

    hello neveed next problem is - if I send 2 over on the same day it wants to over right the first one sent is there a way of doing it but give each copyreport a unique name or number ?

  8. #8
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: vba problem copy paste and email

    what actually my macro will do is which i provide you the file is.

    first it will copy the data to database sheet next at the same it will copy to copyreport sheet and then next it will copy copyreport sheet to new workbook and it will give name to that workbook as "Copy Report" and it will a send a mail after sent mail that file will delete automatically...

    now you tell me you want to make copy of file whenever u will send a mail ?

  9. #9
    Registered User
    Join Date
    03-04-2013
    Location
    birmingham
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: vba problem copy paste and email

    hello mate sorry now it works just fine I was having a mental block seems to ok now

  10. #10
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: vba problem copy paste and email

    Nice Glad i could help you, if you satisfied with the provide solution then please do the below points

    1. If the suggestion helps you, then Click * to Add Reputation
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copy / Paste a Dynamic Range in Email
    By jharris90 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-17-2014, 01:56 PM
  2. [SOLVED] Copy/Paste percentages into an email
    By Wheelie686 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2012, 05:21 PM
  3. can I copy a column of email addresses, paste into email address?
    By Lizizfree in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-20-2006, 05:05 PM
  4. [SOLVED] Copy/Paste to email
    By Beeel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2005, 10:06 AM
  5. Replies: 1
    Last Post: 01-04-2005, 06:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1