Re: IncrementLeft problem
From: Jean-Guy Marcil (no-spam_at_leaveme.alone)
Date: 09/07/04
- Next message: Jay Freedman: "Re: Removing paragraph frames with VBA"
- Previous message: Santiago Gomez: "Removing paragraph frames with VBA"
- In reply to: Chuck: "Re: IncrementLeft problem"
- Next in thread: Chuck: "Re: IncrementLeft problem"
- Reply: Chuck: "Re: IncrementLeft problem"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Jay Freedman: "Re: Removing paragraph frames with VBA"
- Previous message: Santiago Gomez: "Removing paragraph frames with VBA"
- In reply to: Chuck: "Re: IncrementLeft problem"
- Next in thread: Chuck: "Re: IncrementLeft problem"
- Reply: Chuck: "Re: IncrementLeft problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|