+ Reply to Thread
Results 1 to 3 of 3

Marcowarnings when pasting chartobjects to powerpoint

  1. #1
    Marie J-son
    Guest

    Marcowarnings when pasting chartobjects to powerpoint

    Hi,
    When I paste a chartobject from a worksheet to powerpoint, 3 macrowarnings
    in a row occur.
    I have code running when opening and closing the file and code running when
    activating/deactivating the worksheet - this is the cause to the warnings, I
    guess.

    How can I get rid of them?

    Is there a way to trap when someone try to link information and then only
    allow picturepaste ?
    I wouldn't want to allow linking objects at all if it is possible, but I
    must be able to paste chartobjects as pictures in powerpoint. This maybe
    could be the answer to both questions

    /Kind Regards




  2. #2
    Tushar Mehta
    Guest

    Re: Marcowarnings when pasting chartobjects to powerpoint

    The answer to both your questions is "No, you cannot." At least, not
    the way you seem to have things set up.

    To avoid warnings, don't put the code in each workbook. Instead create
    an add-in with application-level events. That way your workbooks will
    always be code-free.

    To learn more look up application events in XL VBA help. For more
    search msdn.microsoft.com. You'll get many hits including
    http://msdn.microsoft.com/library/de...l=/library/en-
    us/dnword2k2/html/odc_wdappevnt.asp
    and
    http://msdn.microsoft.com/library/de...l=/library/en-
    us/vbapp11/html/pphowUsingAppEvents_HV05237994.asp

    --
    Regards,

    Tushar Mehta
    www.tushar-mehta.com
    Multi-disciplinary business expertise
    + Technology skills
    = Optimal solution to your business problem
    Recipient Microsoft MVP award 2000-2005

    In article <[email protected]>, [email protected] says...
    > Hi,
    > When I paste a chartobject from a worksheet to powerpoint, 3 macrowarnings
    > in a row occur.
    > I have code running when opening and closing the file and code running when
    > activating/deactivating the worksheet - this is the cause to the warnings, I
    > guess.
    >
    > How can I get rid of them?
    >
    > Is there a way to trap when someone try to link information and then only
    > allow picturepaste ?
    > I wouldn't want to allow linking objects at all if it is possible, but I
    > must be able to paste chartobjects as pictures in powerpoint. This maybe
    > could be the answer to both questions
    >
    > /Kind Regards
    >
    >
    >
    >


  3. #3
    Jon Peltier
    Guest

    Re: Marcowarnings when pasting chartobjects to powerpoint

    Marie -

    Copy the charts as pictures in the first place. Hold shift while selecting the Edit
    menu, and Copy becomes Copy Picture. I prefer the On Screen and As Picture options.
    Then in PowerPoint simply paste.

    For more info, see http://peltiertech.com/Excel/XL_PPT.html

    - Jon
    -------
    Jon Peltier, Microsoft Excel MVP
    Peltier Technical Services
    Tutorials and Custom Solutions
    http://PeltierTech.com/
    _______

    Marie J-son wrote:

    > Hi,
    > When I paste a chartobject from a worksheet to powerpoint, 3 macrowarnings
    > in a row occur.
    > I have code running when opening and closing the file and code running when
    > activating/deactivating the worksheet - this is the cause to the warnings, I
    > guess.
    >
    > How can I get rid of them?
    >
    > Is there a way to trap when someone try to link information and then only
    > allow picturepaste ?
    > I wouldn't want to allow linking objects at all if it is possible, but I
    > must be able to paste chartobjects as pictures in powerpoint. This maybe
    > could be the answer to both questions
    >
    > /Kind Regards
    >
    >
    >



+ 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