+ Reply to Thread
Results 1 to 10 of 10

copy cells to powerpoint slides

  1. #1
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    109

    copy cells to powerpoint slides

    Hello,

    I have a report that I run and format in excel, and then I paste the cells into a spreadsheet in power point over several slides. I'm trying to create a macro that will do this automatically, but I am having trouble getting Excel to communicate with Power Point. Right now I'm only trying to record the macro, because I don't know the code to get Excel to work with this other program, but that is not working at all. It registers what I want it to do in Excel fine, but when it comes to the Power Point side of the action, it just stops cold.

    Anybody willing to help me out on this?

    Thanks!

  2. #2
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: copy cells to powerpoint slides

    the best way to get access to object in another Office application is to include a reference to it in the Excel workbook. This is done in VBA through the Tools->References Menu. In the case of PowerPoint, lookk for the Microsoft PowerPoint Object Library and check the box. You then have access to all the powerpoint objects from Excel. Look at the VBA help on "Controlling One Microsoft Office Application from Another" to see how this works.

    Also, you can record a macro in powerport and copy the results to the Excel VBA so the two are merged together.

    Hope this helps.
    Bob
    Click my star if my answer helped you. Mark the thread as [SOLVED] if it has been.

  3. #3
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: copy cells to powerpoint slides

    Bob,

    Thanks for the quick reply. I'm about to head out for the weekend, but I wanted to touch base with you on this real quick. I put a check mark in the box next to Microsoft PowerPoint 12.0 Object Library. I think that is the right one.

    I tried again with recording a macro to open the ppt file, but had no love from the macro. I'm going to go check out the help section for the next ten minutes before I get out of here, and I'll hopefully get back to this early next week. If I still run into problems, I will definitly head back here. Thanks for the tip!

  4. #4
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: copy cells to powerpoint slides

    What you need to do is record the things that you want to do in PowerPoint using PowerPoint record macro and record what you want to do in Excel uwing Excel record macro, then put the two together. If you do the two recordings, post the two files, and let me know how you want them to work together, I'll give you a hand doing that.

  5. #5
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: copy cells to powerpoint slides

    Bob,

    That makes perfect sense. Let me see if I can get it working. If I can't, I'll certainly take you up on that offer, and post them up here.

  6. #6
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: copy cells to powerpoint slides

    Bob,

    Here are the two files I have. The power point is put up on a touch screen monitor, hence all the buttons.

    At any rate, the first slide I am working with is number 15 (titled vendor board page 1)

    Not realizing that there isn't a recorder in power point, it's making it harder for me to learn the code. What I need to have happen is for power point to open the excel table embedded in that page, and then paste the information in from the excel table (sheet 1). As it will only show so many cells, I then need it to move to slide 16, grab the next range of cells from excel, and paste it into that slide.

    Does that all make sense?

    If you could help me with this, at least get me started, I would greatly appreciate it.

    And I just found out it's not letting me attach the power point file.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: copy cells to powerpoint slides

    Quote Originally Posted by just_some_guy View Post
    Not realizing that there isn't a recorder in power point, it's making it harder for me to learn the code.
    I am an Office 2003 user and there is a macro recording capability there. Maybe you need to enable macros in your version of PowerPoint.

  8. #8
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: copy cells to powerpoint slides

    Bob,

    Unfortunately one of the things they took out with powerpoint 2007 was the ability to record macros. There is a recorder if you type Alt+T, M, R, but whenever I try to use that, it throws up odd error messages constantly. Perhaps if you still have the recorder on your end, you'll be able to make something work.

    Thanks for your help.

  9. #9
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: copy cells to powerpoint slides

    Man, I thought I could help you with this, but unfortunately, I am a Office 2003 user and cannot get access to all of the VBA code in your 2007 PowerPoint file. 2003 is not letting me see but a small part of it. Your problem is really a PowerPoint problem, not an Excel one. I suggest that you resubmit this to a PPT forum.

    It loks like you are probably pretty close. Sorry I can't help further.

  10. #10
    Forum Contributor
    Join Date
    03-02-2010
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    109

    Re: copy cells to powerpoint slides

    Bob,

    Thanks for all the time you've put into helping me. I do appreciate it.

+ 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