Re: IncrementLeft problem
From: Chuck (Chuck_at_discussions.microsoft.com)
Date: 09/08/04
- Next message: Jezebel: "Re: Hide VBA module in Word VBA"
- Previous message: Howard Kaikow: "Re: Hide VBA module in Word VBA"
- In reply to: Jean-Guy Marcil: "Re: IncrementLeft problem"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 8 Sep 2004 04:35:29 -0700
Hi Jean-Guy
Next time I'll try to read the instructions more carefully! ;-)
Chuck
"Jean-Guy Marcil" wrote:
> 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
>
>
>
>
- Next message: Jezebel: "Re: Hide VBA module in Word VBA"
- Previous message: Howard Kaikow: "Re: Hide VBA module in Word VBA"
- In reply to: Jean-Guy Marcil: "Re: IncrementLeft problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|