Re: change font size of whole document by Stefan
Stefan
Tue Sep 11 02:38:20 CDT 2007
"Helmut Weber" wrote in message
news:hvjae3dr1k20k7ccf1iue32cflv0hdp5lo@4ax.com...
> Hi FotoArt,
>
> the easy thing at first.
> selection.collapse
>
> Then, there can be several issues.
>
> If there are different fonts in the selection,
> the condition would never be true.
> To check it, try it with different fonts in the selection:
>
> MsgBox Selection.Font.Name = "Arial"
>
> Understandably, for sure.
>
> But then, even if you have formatted
> all of the doc in "Arial" and the doc is not quite small,
> the condition would never be true.
>
I've read it too, somewhere, but I obviously didn't think of it when I
posted my reply. :-(
Thank you for clarifying this.
--
Stefan Blom
Microsoft Word MVP
> I think I've read about that once,
> but can't remember exactly.
>
> However, for 11 pages of "The quick brwon fox",
> the following code stops after character 21119!
>
> Also
> activedocument.range.font.name = "Arial"
> returns false!
>
> So you got to process smaller portions,
> besides the first mentioned issue.
>
> And google here for range vs. selection,
> it's worth finding out the difference.
>
>
> To the best of my knowledge.
>
> --
> Greetings from Bavaria, Germany
>
> Helmut Weber, MVP WordVBA
>
> Win XP, Office 2003
> "red.sys" & Chr$(64) & "t-online.de"
>
>