+ Reply to Thread
Results 1 to 3 of 3

Help with xlPastespecial command in my VBA Code

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Help with xlPastespecial command in my VBA Code

    Dear All

    I have a vba code that selects the pre selected Print Area and copies it to a new sheet. The area contains a Pivot table and a pivot chart from another ivot data.

    The copy command work but it only copies the Pivot table and not the chart. I use the xlPastespecial Paste:=All command.

    When I do the copy and paste manually it works but I think the command copies the values and not the ha\rt. Is there any way I can have a code to copy the selected area as a normal Past i.e. Ctrl C and Cltr V command or just pate it selection as Picture. The code then emails the new sheet to the selected recipients and I only need the selected area to be emailed.

    Thanks in advance for your help

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Help with xlPastespecial command in my VBA Code

    You haven't supplied the code you are referring to.

  3. #3
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with xlPastespecial command in my VBA Code

    Sorry

    the code is below which I got from forum's help
    Please Login or Register  to view this content.

+ 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. Create a command button with code with a command button
    By jakara in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2013, 01:28 PM
  2. Useform Code - 12 Command Buttons dependant on other command buttons
    By darrenkaye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2013, 10:58 AM
  3. Code for a master command button to change the backcolor of multiple command buttons?
    By panttherm5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2012, 10:11 PM
  4. [SOLVED] vba code, command bar, command bar button, one button works but not two
    By amazingg64 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2012, 09:55 AM
  5. Trying to Give New Command Button Code from Another Sheet's Code
    By MegaRush in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2012, 09:43 AM

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