A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.
Hi,
Several ways to do it depending upon your proficiency in VBA. This basic snippet works from PowerPoint. Paste it into a code module in PowerPoint to run it.
Sub GetDataFromExcel()
Dim I As Integer
Dim oXL As Object 'Excel.Application
Dim oWB As Object 'Excel.Workbook
Dim oSld As Slide
Set oXL = CreateObject("Excel.Application")
Set oWB = oXL.Workbooks.Open(FileName:="C:\Documents\Data.xls")
'Assumes the active presentation has 40 slides.
For I = 1 To 40
Set oSld = ActivePresentation.Slides(I)
'Assumes that the first 9 shapes on the slide are the shapes which map to the cells in excel
' Alternately you could use shape names to put them in the right textbox
' e.g. oSld.Shapes("Textbox 10").TextFrame.TextRange.Text = oWB.Sheets(1).Range("A" & CStr(I)).Value
' Copy cell contents from the 1st sheet in Excel to the textboxes in PowerPoint.
oSld.Shapes(1).TextFrame.TextRange.Text = oWB.Sheets(1).Range("A" & CStr(I)).Value
oSld.Shapes(2).TextFrame.TextRange.Text = oWB.Sheets(1).Range("B" & CStr(I)).Value
oSld.Shapes(3).TextFrame.TextRange.Text = oWB.Sheets(1).Range("C" & CStr(I)).Value
oSld.Shapes(4).TextFrame.TextRange.Text = oWB.Sheets(1).Range("D" & CStr(I)).Value
oSld.Shapes(5).TextFrame.TextRange.Text = oWB.Sheets(1).Range("E" & CStr(I)).Value
oSld.Shapes(6).TextFrame.TextRange.Text = oWB.Sheets(1).Range("F" & CStr(I)).Value
oSld.Shapes(7).TextFrame.TextRange.Text = oWB.Sheets(1).Range("G" & CStr(I)).Value
oSld.Shapes(8).TextFrame.TextRange.Text = oWB.Sheets(1).Range("H" & CStr(I)).Value
oSld.Shapes(9).TextFrame.TextRange.Text = oWB.Sheets(1).Range("I" & CStr(I)).Value
Next
oWB.Close
oXL.Quit
Set oWB = Nothing
Set oXL = Nothing
End Sub
Regards, Shyam Pillai. http://skp.mvps.org