R
rita
Hi,
The following is an example of code that compiles but will not run when the
string variable strTextToBeInserted is too large. Is there a way around this
so that I can copy huge chunks of text to the desired storyrange (in this
case a text box)?
Set stryRng = docTargetDocument.StoryRanges(wdTextFrameStory)
With stryRng.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "Insert Here"
.Replacement.Text = strTextToBeInserted
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With
Thanks in advance for any ideas,
Rita
The following is an example of code that compiles but will not run when the
string variable strTextToBeInserted is too large. Is there a way around this
so that I can copy huge chunks of text to the desired storyrange (in this
case a text box)?
Set stryRng = docTargetDocument.StoryRanges(wdTextFrameStory)
With stryRng.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "Insert Here"
.Replacement.Text = strTextToBeInserted
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With
Thanks in advance for any ideas,
Rita