D
Dennis
Hi all..
This is what I have that works so far using record macro..
Sub CPYSTMT()
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "XX/XX"
.Replacement.Text = "WFL/ME"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
ActiveWindow.ActivePane.VerticalPercentScrolled = 11
ActiveWindow.ActivePane.VerticalPercentScrolled = 6
Selection.WholeStory
Selection.Copy
End Sub
This is the text in the doc that I would like to stay constant after I
complete my macro…
COPY (WHITE)XX/XX AS (BLUE)XX/XX, (WHITE)XX/XX AS (GOLD)XX/XX, (WHITE)XX/XX AS
(SILVER)XX/XX, (WHITE)XX/XX AS (JADE)XX/XX, (WHITE)XX/XX AS (TAN)XX/XX,
(WHITE)XX/XX AS (DIAMOND)XX/XX, (WHITE)XX/XX AS (PURPLE)XX/XX FROM DISK(PACK)
TO DISK(PACK)
This is what I would like to accomplish…
Replace all the XX/XX using a pop-up box that I would enter the
Replacement.Text = value. This will always be different, not always 'WFL/ME.
Copy the entire doc to clipboard.
Close the doc without saving the changes and without having to manually hit
the 'NO' to 'Do you want to save the changes' box.
Any help would be appreciated.
Thanx, Dennis
===================
This is what I have that works so far using record macro..
Sub CPYSTMT()
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "XX/XX"
.Replacement.Text = "WFL/ME"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
ActiveWindow.ActivePane.VerticalPercentScrolled = 11
ActiveWindow.ActivePane.VerticalPercentScrolled = 6
Selection.WholeStory
Selection.Copy
End Sub
This is the text in the doc that I would like to stay constant after I
complete my macro…
COPY (WHITE)XX/XX AS (BLUE)XX/XX, (WHITE)XX/XX AS (GOLD)XX/XX, (WHITE)XX/XX AS
(SILVER)XX/XX, (WHITE)XX/XX AS (JADE)XX/XX, (WHITE)XX/XX AS (TAN)XX/XX,
(WHITE)XX/XX AS (DIAMOND)XX/XX, (WHITE)XX/XX AS (PURPLE)XX/XX FROM DISK(PACK)
TO DISK(PACK)
This is what I would like to accomplish…
Replace all the XX/XX using a pop-up box that I would enter the
Replacement.Text = value. This will always be different, not always 'WFL/ME.
Copy the entire doc to clipboard.
Close the doc without saving the changes and without having to manually hit
the 'NO' to 'Do you want to save the changes' box.
Any help would be appreciated.
Thanx, Dennis
===================