Re: error trying to change topmargin
- From: Jay Freedman <jay.freedman@xxxxxxxxxxx>
- Date: Tue, 05 Apr 2005 21:30:58 -0400
On Tue, 5 Apr 2005 11:19:02 -0700, "rgagne@xxxxxxxxxxxxxxxxxxxxx"
<rgagne@xxxxxxxxxxxxxxxxxxxxx@discussions.microsoft.com> wrote:
>Hello
>
>i am getting an error when I try to do the next line
> .TopMargin = InchesToPoints(1)
>it is run in
> With ActiveDocument.PageSetup
> .LineNumbering.Active = False
> .Orientation = wdOrientPortrait
> .TopMargin = InchesToPoints(1)
> end with
>
>the vb6 program runns fine changes the orienation and then fails on
>changeing the top margin. the problem is that it does not happen all the time
>
>anyone have any ideas
Well, the syntax is perfectly legal. But your post raises more
questions:
- Exactly what error occurs? (number and descriptive text, please)
- Is this in VBA or in VB6? (the code doesn't look like VB6)
- Are you running the code against a new blank document or existing
documents? If it's existing docs, can you see anything they have in
common with each other but not ones that don't have the problem?
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
.
- References:
- error trying to change topmargin
- From: rgagne@collettevacations.com
- error trying to change topmargin
- Prev by Date: RE: Read Document Name Programatically as Search Criteria
- Next by Date: Programmatically Modify Code in Word Document
- Previous by thread: error trying to change topmargin
- Next by thread: error trying to change topmargin
- Index(es):
Relevant Pages
|