Red2034
Thread Starter
- Joined
- Apr 16, 2007
- Messages
- 178
I have a word doc i would like to open & modify based on some control text boxes in a powerpoint PPT file.
I have code that works if I am already in the word doc....
Dim rngStory As Range
For Each rngStory In ActiveDocument.StoryRanges
With rngStory.Find
.Text = "Question"
.Replacement.Text = Question
.MatchCase = True
.MatchWholeWord = True
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With
Next rngStory
but dont know how to start the process.... any help????
I have code that works if I am already in the word doc....
Dim rngStory As Range
For Each rngStory In ActiveDocument.StoryRanges
With rngStory.Find
.Text = "Question"
.Replacement.Text = Question
.MatchCase = True
.MatchWholeWord = True
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With
Next rngStory
but dont know how to start the process.... any help????