Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2003, Windows XP
This code, based in an Excel workbook, retrieves words from Microsoft Word (Word 2003). But first it strips out all punctuation. I'm having trouble stripping out the wildcard characters. This is the code fragment not working: Set oRange = ActiveDocument.Range With oRange.Find .Text = "?" .Replacement.Text = " " .Forward = True .Wrap = wdFindContinue End With oRange.Find.Execute Replace:=wdReplaceAll I've tried replacing .Text = "?" with .Text = "/?" which is the MSWord signal to look for the actual character mark, and .Text = "~?" which is the Excel signal to look for the actual character mark, but neither works. Any ideas? I also need this to find the MSWord wildcard characters ! and *. Thank you! Susan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using wildcard characters in find & replace | Excel Worksheet Functions | |||
Use of Wildcard characters with replace | Excel Discussion (Misc queries) | |||
Find and Replace Command Using Wildcard Help | Excel Discussion (Misc queries) | |||
Find Replace Wildcard | New Users to Excel | |||
How do you find and replace a Wildcard character in Excel? | Excel Discussion (Misc queries) |