Pesach, that is a great little macro - although it does not run in
background (but it will soon ) - I've some examples below.
The start point on left will be a tilde ~ character so the macro can run -
then to clean macro I will run a tilde erase.
The stop point on right side is first softspace and
(
[
~
Is that workable?
Examples below:
Hewsin & Ors v Able Jones Pty Ltd (unreported)
Smithsonian v Joyce [1974] QB 454
GIO of NSW v Planas (1984) 2 NSWLR 671
Griffiths v Kerkemeyeaaar (1973) 139 CLR 161
Hodges v Frost at first instance, (unreported) decision of Kelly J, Supreme
Court, ACT (21 October 1983) No. 799 of 1980
Apples v Frost (1985) 53 ALR 373
Browne v The Commonwealth and Lagozzande (unreported) decision of Males CJ,
Supreme Court, ACT (3 May 1987) No. 441 of 1981
McIntyre v Miller (1979) 30 ACTR 8
Nguyen v Nguyen (1992) 167 CLR 245
Veselinovice v Thorley (1983) 1 Qd R 191
Wanne v Fire and All Risks Insurance Co Ltd (1980) 2 Qd R 592
Watersmaple v Mussigee (1986) 1 Qd R 213
Pesach Shelnitz said:
Hi,
You would need some definite criteria to determine whether the preceding
words are part of the name of one side and whether the subsequent words
are
part of the name of the other side. Do you have such criteria?
--
Hope this helps,
Pesach Shelnitz
:
Hi,
Thanks for that, it's really clever! Just one thing that i should have
mentioned, the case name lengths vary, so it isn't always one name v
another
name, it could be Microsoft plc an others v Allians.
Do you know if it is possible to get the macro to be able to do that
still?
Thanks very much
:
Hi Megan,
The following macro should do what you want. Note that this macro runs
silently. You will have to look in the footnotes to see the results.
Sub FormatCaseNames()
With ActiveDocument.StoryRanges(wdFootnotesStory)
Do While .Find.Execute("<[A-Za-z]{1,}> v <[A-Za-z]{1,}>", _
MatchWildcards:=True, _
Wrap:=wdFindStop, Forward:=True) = True
.Font.Italic = True
.Collapse Direction:=wdCollapseEnd
Loop
End With
End Sub
--
Hope this helps,
Pesach Shelnitz
:
I need to create a macro that will italicise all the case names in my
footonotes, the names change, but there is always a v in the middle,
eg:
Microsoft v Apple or Dave v Frank, is this possible?
any help much appreciated.