atw: Re: VBA/Word2000 Gurus

Thanks Craig.  I can't see a problem with it either!  I should've made 
myself clearer though - the current value is 9999999, according to the 
debug window or hovering over the attribute name.  Now that's not a 
valid value.  What I've put in IS a valid value, but it won't modify it.  
GRRRR. I've stepped through it so I know that the pagesize and 
marginsize attributes are the issue.  I've tried taking out the 
'CentimeterstoPoints' and substituting a point value - it still throws up 
the 'out of range' error.  I've tried restarting too.  *mutter*  No wonder 
techwriters are all a little loopy.

- Naomi

> Naomi wrote:
> > everything pagesize- or margin-related is set to 9999999
> 
> You could try stepping through the macro one statement at a time by
> pressing F8 in the Code window. Hover your mouse over both sides of
> each assignment statement to see the current and upcoming values of
> each property. Doing that might give you a clue as to what's going
> wrong. (I can't see anything wrong with the code.)
> 
> Another thing to try would be close down your PC and then restart,
> with only Word running, as sometimes VBA can misbehave because of
> resource or memory issues.
> 
> Hope that helps,
> Craig 

**************************************************
To post a message to austechwriter, send the message to 
austechwriter@xxxxxxxxxxxxxx

To subscribe to austechwriter, send a message to 
austechwriter-request@xxxxxxxxxxxxx with "subscribe" in the Subject field.

To unsubscribe, send a message to austechwriter-request@xxxxxxxxxxxxx with 
"unsubscribe" in the Subject field.

To search the austechwriter archives, go to 
www.freelists.org/archives/austechwriter

To contact the list administrator, send a message to 
austechwriter-admins@xxxxxxxxxxxxx
**************************************************

Other related posts: