Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2020, 07:01 PM
tmab tmab is offline Dividing Text From Notepad to Powerpoint Windows 10 Dividing Text From Notepad to Powerpoint Office 2013
Novice
Dividing Text From Notepad to Powerpoint
 
Join Date: Apr 2020
Posts: 1
tmab is on a distinguished road
Post Dividing Text From Notepad to Powerpoint

Is there a way other than Copy and paste each word (text), to create 10 separate slides of a 10 word sentence on PPT using a command or Plugin ? (Task - 700 to 800 word essay has to be separated into slides. One word per slide.)
Reply With Quote
  #2  
Old 04-29-2020, 07:30 AM
JohnWilson JohnWilson is offline Dividing Text From Notepad to Powerpoint Windows 10 Dividing Text From Notepad to Powerpoint Office 2016
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

You would need to do this with vba code.

Here is the basis of the code needed.

Code:
Sub splitText()

Dim sFilePath As String
Dim iFile As Integer
Dim sInput As String
Dim rayText() As String
Dim L As Long
' assumes texfile is called data.txt and is on the desktop
sFilePath = Environ("USERPROFILE") & "\Desktop\data.txt"
iFile = FreeFile
Open sFilePath For Input As iFile
sInput = Input(LOF(iFile), iFile)
Close iFile
rayText = Split(sInput, " ")
For L = 0 To UBound(rayText)
With ActivePresentation.Slides.Add(ActivePresentation.Slides.Count, ppLayoutTitle)
.Shapes.Title.TextFrame.TextRange = rayText(L)
End With
Next
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
Reply

Tags
#essay, #school



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dividing Text From Notepad to Powerpoint Microsoft notepad over word for saving important text files Noclip1 Word 1 10-25-2017 10:55 PM
Dividing Text From Notepad to Powerpoint Copy text with tab at start of line and paste to Notepad JohnTurnbull Word 5 08-27-2017 11:17 PM
Dividing Text From Notepad to Powerpoint Formula Help for Dividing Properly lonniepoet Excel 8 12-17-2015 12:27 PM
Dividing line at top of document? daviddoria Word 0 10-24-2009 08:13 AM
Dividing by 100! fkaramagi Excel 2 01-30-2009 02:52 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:58 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft