+ Reply to Thread
Results 1 to 3 of 3

VBA to copy, highlight cells then e-mail.

  1. #1
    Registered User
    Join Date
    01-26-2010
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    23

    VBA to copy, highlight cells then e-mail.

    Hi,

    I have got the following code that automatically copies a range of cells within the sheet i am on and then creates a new excel workbook then sends it to an e-mail address specified.

    Is there anyway i can change it so that it copies the specified range (A1:K50) but then when it pastes that range into another sheet i would like it to highlight some of the cells yellow based on what i had higlighted on the sheet when i run the vba

    e.g.
    i hightlight B6:E10 then run the VBA, i want it to copy A1:K50 into another sheet (as below) but then on the new sheet highlight cells B6:E10.

    Please Login or Register  to view this content.
    Regards,
    Jamie
    Last edited by tmtjamie; 02-24-2010 at 12:59 PM.

  2. #2
    Forum Contributor
    Join Date
    02-04-2010
    Location
    Hertfordshire, England
    MS-Off Ver
    Office 2007 (home) Office 365 (work)
    Posts
    134

    Re: VBA to copy, highlight cells then e-mail.

    Hi tmtjamie

    I have inserted some code into your code to highlight the cells you have selected at the time when the macro is run.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-26-2010
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: VBA to copy, highlight cells then e-mail.

    This is great!!!

    Thank You

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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