Re: IncrementLeft problem

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jean-Guy Marcil (no-spam_at_leaveme.alone)
Date: 09/07/04


Date: Tue, 7 Sep 2004 14:15:19 -0400

Bonjour,

Dans son message, < Chuck > écrivait :
In this message, < Chuck > wrote:

|| I figured out what the problem was. I had declared the width and
horizontal
|| position variables as "Long" rather than "Variant" in the code that
didn't
|| return accurate calculations (but rather rounded to the nearest integer).
|| When I changed the type to Variant the code calculated exactly rather
than
|| rounding...
||

I guess I should have been more explicit in my preceding reply.
I started my message with:

<quote>
It depends how you set up you variables:

Dim MyPageWidth As Single
MyPageWidth = PointsToCentimeters(ActiveDocument.PageSetup.PageWidth)

will yield a precise number.
<end quote>

I should have written a bit more about the fact that I was suggesting that
you use Single as I suspected that you were using Integer or Long variables.

I'll try to be clearer next time!

Glad you finally sorted it out.

-- 
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org


Relevant Pages

  • Re: Supress blank lines
    ... break/single quote, which are put in automatically using the Toolbar 'Insert ... Graham Mayor - Word MVP ... Word MVP web site http://word.mvps.org ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Autocorrect problem - straight apostrophes
    ... I get the same thing you do when I use a straight quote ... Word MVP FAQ site: http://word.mvps.org ... two initial capitals, capitalize names of days, correct accidental ...
    (microsoft.public.word.application.errors)
  • Re: Conditionals in Mail Merge label layout
    ... It is paired with the quote after {MERGEFIELD ... You will find quite a bit about fields on my web site ... Word MVP web site http://word.mvps.org ... When the Country ...
    (microsoft.public.word.newusers)
  • Re: fieds formatting issue
    ... Word MVP web site http://word.mvps.org ... Joyce M wrote: ... do you get this in ...is quote a quote or spelled out word, ...
    (microsoft.public.word.docmanagement)