PC Review


Reply
Thread Tools Rate Thread

How to create mult. PowerPoint certificates using Excel data?

 
 
=?Utf-8?B?VEo=?=
Guest
Posts: n/a
 
      5th Oct 2006
I have a list of names (first and last) to creat certificates of completion
in PowerPoint. I do not want to type each name individually into PowerPoint.
How can I create the individual certificates importing data from Excel to
PowerPoint?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QWxvaw==?=
Guest
Posts: n/a
 
      5th Oct 2006
You could automate Excel from PowerPoint as follows

1. Create a reference to the Excel Object library

2. Create an Excel file containing the names.

3. Place the following code in a Code Module.

Public Function Test()
Dim xl As Excel.Application
Dim wb As Workbook
Dim ws As Worksheet
Dim i%

Set xl = New Excel.Application
Set wb = xl.Workbooks.Open("C:\Temp\Names.xls")
Set ws = wb.Worksheets(1)

With ActiveWindow.Selection.SlideRange
For i = 1 To 3
.Shapes("Rectangle 2").TextFrame.TextRange.Text = ws.Cells(i,
1).Value
.Shapes("Rectangle 3").TextFrame.TextRange.Text = ws.Cells(i,
2).Value
ActiveWindow.Presentation.PrintOut 1, 1
Next i
End With

Set ws = Nothing
wb.Close SaveChanges:=False
Set wb = Nothing
xl.Quit
Set xl = Nothing

End Function

4. typing ? Test in the Immediate window
5. The code should print one copy for each of the names.
6. You will obviously need to make modifications to the code based on the
location of your names.xls file, the start and end row numbers and column
numbers in which the first and last names lie and the names of the shapes in
your Power Point slide.

Alok



"TJ" wrote:

> I have a list of names (first and last) to creat certificates of completion
> in PowerPoint. I do not want to type each name individually into PowerPoint.
> How can I create the individual certificates importing data from Excel to
> PowerPoint?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
print mass Powerpoint certificates from Excel file Go to Girl Microsoft Powerpoint 2 3rd Nov 2010 02:48 PM
create a list that places data in 3 colmuns (cells) from mult row/ old fellow Microsoft Excel Worksheet Functions 1 10th Apr 2009 08:01 AM
Best practices for pulling data from a network Excel file (mult users) KR Microsoft Excel Programming 0 7th Mar 2006 07:40 PM
I need to create gift certificates in excel how do I number each . =?Utf-8?B?R3VzMjI=?= Microsoft Excel Worksheet Functions 1 9th Dec 2004 06:59 AM
VBA Another syntax Q (mult slides mult images pasted from XL) <long> Keith R Microsoft Powerpoint 2 4th Dec 2003 03:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:34 AM.