Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 978519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:04:14+00:00 2026-05-16T04:04:14+00:00

My requirement is I have a Excel which contains some data. I would like

  • 0

My requirement is I have a Excel which contains some data. I would like to select some data from the excel and open a PowerPoint file and

Create Table in PowerPoint and populate the data in to it

Right now I have succeeded in collecting the data from excel opening a PowerPoint file through Excel VBA Code.

Code for Opening the PowerPoint from Excel.

    Set objPPT = CreateObject("Powerpoint.application")
    objPPT.Visible = True
    Dim file As String
    file = "C:\Heavyhitters_new.ppt"
    Set pptApp = CreateObject("PowerPoint.Application")
    Set pptPres = pptApp.Presentations.Open(file)

Now how do I create the table in PowerPoint from Excel and populate the data.

Timely help will be very much appreciated.

Thanks in advance,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:04:14+00:00Added an answer on May 16, 2026 at 4:04 am

    Here’s some code from http://mahipalreddy.com/vba.htm

    ''# Code by Mahipal Padigela
    ''# Open Microsoft Powerpoint,Choose/Insert a Table type Slide(No.4), then double click to add a...
    ''# ...Table(3 Cols & 2 Rows) then rename the Table to "Table1", Save and Close the Presentation
    ''# Open Microsoft Excel, add some test data to Sheet1(This example assumes that you have some data in...
    ''# ... Rows 1,2 and Columns 1,2,3)
    ''# Open VBA editor(Alt+F11),Insert a Module and Paste the following code in to the code window
    ''# Reference 'Microsoft Powerpoint Object Library' (VBA IDE-->tools-->references)
    ''# Change "strPresPath" with full path of the Powerpoint Presentation created earlier.
    ''# Change "strNewPresPath" to where you want to save the new Presnetation to be created later
    ''# Close VB Editor and run this Macro from Excel window(Alt+F8) 
    
    Dim oPPTApp As PowerPoint.Application
    Dim oPPTShape As PowerPoint.Shape
    Dim oPPTFile As PowerPoint.Presentation
    Dim SlideNum As Integer
    Sub PPTableMacro()
        Dim strPresPath As String, strExcelFilePath As String, strNewPresPath As String
        strPresPath = "H:\PowerPoint\Presentation1.ppt"
        strNewPresPath = "H:\PowerPoint\new1.ppt"
    
        Set oPPTApp = CreateObject("PowerPoint.Application")
        oPPTApp.Visible = msoTrue
        Set oPPTFile = oPPTApp.Presentations.Open(strPresPath)
        SlideNum = 1
        oPPTFile.Slides(SlideNum).Select
        Set oPPTShape = oPPTFile.Slides(SlideNum).Shapes("Table1")
    
        Sheets("Sheet1").Activate
        oPPTShape.Table.Cell(1, 1).Shape.TextFrame.TextRange.Text = Cells(1, 1).Text
        oPPTShape.Table.Cell(1, 2).Shape.TextFrame.TextRange.Text = Cells(1, 2).Text
        oPPTShape.Table.Cell(1, 3).Shape.TextFrame.TextRange.Text = Cells(1, 3).Text
        oPPTShape.Table.Cell(2, 1).Shape.TextFrame.TextRange.Text = Cells(2, 1).Text
        oPPTShape.Table.Cell(2, 2).Shape.TextFrame.TextRange.Text = Cells(2, 2).Text
        oPPTShape.Table.Cell(2, 3).Shape.TextFrame.TextRange.Text = Cells(2, 3).Text
    
        oPPTFile.SaveAs strNewPresPath
        oPPTFile.Close
        oPPTApp.Quit
    
        Set oPPTShape = Nothing
        Set oPPTFile = Nothing
        Set oPPTApp = Nothing
    
        MsgBox "Presentation Created", vbOKOnly + vbInformation
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have the requirement to take a form submission and save some data, then
I have a requirement on my current project (a Flex app which will be
I have the following requirement I have a Employee class: public class Employee {
We have a requirement in project to store all the revisions(Change History) for the
I have a requirement to make a large amount of code MISRA compliant. First
We have a requirement to increase the functionality of a grid we are using
I have a requirement to be able to provide a flex component in English
I have a requirement to be be able to embed scanned tiff images into
I have a requirement to implement an Unsaved Changes prompt in an ASP .Net
I have a requirement in my application that I think can be met by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.