Re: error trying to change topmargin



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
.



Relevant Pages

  • RE: Inserting an Email Address fails.
    ... Inserting an Email Address fails. ... Isn't the syntax for INSERT ... ... neither of which works and both return pretty much the same error message. ...
    (perl.dbi.users)
  • Re: Range Object error
    ... I guess I am still confused by the syntax highlighted by this example ... and this fails too ... Excel not agreeing on exactly which Range/Cells are being referenced. ... I am obviously referencing the RANGE object incorrectly but I dont see ...
    (microsoft.public.excel.programming)
  • Re: Cant retreive Date it gives me the same exception
    ... // following syntax works in dbaccess, but fails with ... // following syntax doesn't fail, ... Informix can bind integers to date columns, ... preparedStatement with a question mark placeholder in the SQL string, ...
    (comp.databases.informix)
  • Re: Syntax for multiple WHERE in recordset?
    ... > Is it possible to create a command object on an un-bound control and ... > build the relevant sql criteria that way and subsequently copy the ... > I will reformat it and try your syntax again. ... If it still fails post the code, the actual SQL statement and what the error ...
    (microsoft.public.vb.controls)
  • Re: Getting by the week.
    ... "SteveH" wrote in message ... margin. ... I'm liking this car a lot. ... And remember kids, RAID is safe and the UPS never fails, and Cisco routers never develop intermittent faults, and external hard drives never fail with only a month's use, and the DNS is reliable and resilient, and the mailserver is protected from all forms of attack. ...
    (uk.rec.cars.modifications)

Quantcast