|
|
|
|
||||||
| ms.sqlserver.setup Questions about SQL Server. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I've found all kinds of messages that say this should work:
Selection.Find.ClearFormatting With Selection.Find .Text = "SomeUniqueValue" End With Selection.Find.Execute i = selection.Information(wdActiveEndPageNumber) i should be page 3 if SomeUniqueValue is found on page 3. But I don't get results like this. i is usually the wrong page, and when I check the value of selection.text, it's one of those charming square characters. I need to run a couple of searches for text in a row, and determine the page number each 'find' was on. No matter what order I run the test in, results are off. This should be so simple... |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
In article <MPG.22799bda2387171e9896c6@msnews.microsoft.com >,
nnn@nnn.nnn says... > I've found all kinds of messages that say this should work: > > Selection.Find.ClearFormatting > With Selection.Find > .Text = "SomeUniqueValue" > End With > Selection.Find.Execute > i = selection.Information(wdActiveEndPageNumber) > > i should be page 3 if SomeUniqueValue is found on page 3. But I don't > get results like this. i is usually the wrong page, and when I check the > value of selection.text, it's one of those charming square characters. > > I need to run a couple of searches for text in a row, and determine the > page number each 'find' was on. No matter what order I run the test in, > results are off. This should be so simple... > Oops wrong ng! |
|
![]() |
| Outils de la discussion | |
|
|