Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Business Applications
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor recovery router safe mode screen slow sound spyware tdlwsp.dll trojan video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Word/Powerpoint 2007 Macro and Outline questions

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
MeteorOmega's Avatar
Junior Member with 2 posts.
 
Join Date: Aug 2009
Experience: Advanced
24-Aug-2009, 08:17 PM #1
Exclamation Word/Powerpoint 2007 Macro and Outline questions
Hi, all!

I am producing a Powerpoint presentation using blocks of text from a Word document. The text is currently in the following format:

Code:
[Spanish question]
[Spanish response]
[English translation]

[Spanish question]
[Spanish response]
[English translation], etc.
My goal is to import this Word document as an a Powerpoint outline. I've been using two macros to prepare the document:

Macro 1: Moving English to the middle
I need the English translation to directly follow the Spanish question. Here's the macro that I've been using:

Code:
Sub MoveEnglish()
  '
  ' MoveEnglish Macro
  '
  '
  Do
      Selection.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend
      Selection.Cut
      Selection.MoveUp Unit:=wdLine, Count:=1
      Selection.PasteAndFormat (wdPasteDefault)
      Selection.MoveDown Unit:=wdLine, Count:=4
  Loop Until (Selection.End = ActiveDocument.Content.End - 1)
  End Sub
Macro 2: Adding tabs
Based on what I've read, Powerpoint uses tabs to translate a text outline into a presentation. A single tab designates a main bullet, while two tabs designate a secondary bullet. I'm using tabs to set the Spanish question as the title, the English translation as the main bullet, and the Spanish response as the secondary bullet. In other words:

Code:
Slide title
[Tab]Main bullet
[Tab][Tab]Secondary bullet
I've been using the following macro to add tabs to the text:

Code:
Sub AddTabs()
  '
  ' AddTabs Macro
  '
  '
  Do
      Selection.TypeText Text:=vbTab
      Selection.MoveLeft Unit:=wdCharacter, Count:=1
      Selection.MoveDown Unit:=wdLine, Count:=1
      Selection.TypeText Text:=vbTab
      Selection.TypeText Text:=vbTab
      Selection.MoveLeft Unit:=wdCharacter, Count:=1
      Selection.MoveDown Unit:=wdLine, Count:=1
      Selection.Delete Unit:=wdCharacter, Count:=1
      Selection.MoveDown Unit:=wdLine, Count:=1
  Loop Until (Selection.End = ActiveDocument.Content.End - 1)
  End Sub
Powerpoint
I'm displaying the question/translation/response set on a single slide in Powerpoint. I've created three different shapes to hold the three sentences. I've made each shape a content placeholder. Here's what I want:

Code:
[First shape: Question]
[Second shape: Translation]
[Third shape: Response]
However, when I import my text outline, all 3 sentences end up as main bullets in the first shape. The second two shapes are left empty. Here's what I get:

Code:
[First shape: Question
                  Translation
                  Response]
[Second shape]
[Third shape]

So, here are my 2 questions:

  1. Both macros keep skipping lines and getting hung up. I have a hunch that it has to do with the loop that I used. Is there a better/more "standard" way to loop until the end of the document?
  2. Is there a way to force Powerpoint to distribute the 3 sentences to 3 different shapes when I import my outline?
Thanks a ton.
Closed Thread Bookmark and Share

Tags
macro, office, powerpoint, word

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 07:34 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.