Word Macro Error

Discussion in 'NZ Computing' started by Lindsay.Rollo@paradisedotnetdotnz, May 17, 2009.

  1. Thismcode is meant to toggle centimeters and points in Word.

    Can someone plut me right please?

    - - - -

    Sub UnitsofMeasure()

    With ActiveDocument.ActiveWindow
    If .MeasurementUnit = wdCentimeters Then
    ..MeasurementUnit = wdPoints
    Else
    If .MeasurementUnit = wdPoints Then
    ..MeasurementUnit = wdCentimeters
    End If
    End If
    End With

    End Sub

    - - - -
     
    Lindsay.Rollo@paradisedotnetdotnz, May 17, 2009
    #1
    1. Advertising

  2. Lindsay.Rollo@paradisedotnetdotnz

    impossible Guest

    "Lindsay.Rollo@paradisedotnetdotnz" <> wrote in
    message news:...
    > Thismcode is meant to toggle centimeters and points in Word.
    >
    > Can someone plut me right please?
    >
    > - - - -
    >
    > Sub UnitsofMeasure()
    >
    > With ActiveDocument.ActiveWindow
    > If .MeasurementUnit = wdCentimeters Then
    > .MeasurementUnit = wdPoints
    > Else
    > If .MeasurementUnit = wdPoints Then
    > .MeasurementUnit = wdCentimeters
    > End If
    > End If
    > End With
    >
    > End Sub
    >
    > - - - -


    Sub UnitsofMeasure()

    With Options
    If .MeasurementUnit = wdCentimeters Then
    ..MeasurementUnit = wdPoints
    Else
    If .MeasurementUnit = wdPoints Then
    ..MeasurementUnit = wdCentimeters
    End If
    End If
    End With

    End Sub
     
    impossible, May 17, 2009
    #2
    1. Advertising

  3. On Sun, 17 May 2009 02:23:07 GMT, "impossible" <>
    wrote:

    >"Lindsay.Rollo@paradisedotnetdotnz" <> wrote in
    >message news:...
    >> Thismcode is meant to toggle centimeters and points in Word.
    >>
    >> Can someone plut me right please?
    >>

    >Impossible:


    Tks for prompt solution.



    ---
    avast! Antivirus: Outbound message clean.
    Virus Database (VPS): 090516-0, 16/05/2009
    Tested on: 5/17/2009 8:04:25 p.m.
     
    Lindsay.Rollo@paradisedotnetdotnz, May 17, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joni

    Macro error prob in word

    Joni, Mar 11, 2005, in forum: Computer Support
    Replies:
    1
    Views:
    697
    James
    Mar 11, 2005
  2. J. Cod
    Replies:
    0
    Views:
    459
    J. Cod
    Sep 29, 2004
  3. Replies:
    2
    Views:
    505
    Charles
    Sep 28, 2005
  4. John Ortt

    Dedicated Macro or Normal Macro?

    John Ortt, Nov 21, 2005, in forum: Digital Photography
    Replies:
    5
    Views:
    818
    John Ortt
    Nov 22, 2005
  5. Canon S80 Macro button vs Digital Macro?

    , Feb 26, 2006, in forum: Digital Photography
    Replies:
    4
    Views:
    1,387
    Bill P
    Mar 2, 2006
Loading...

Share This Page