Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > NZ Computing > Word Macro Error

Reply
Thread Tools

Word Macro Error

 
 
Lindsay.Rollo@paradisedotnetdotnz
Guest
Posts: n/a
 
      05-17-2009
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

- - - -
 
Reply With Quote
 
 
 
 
impossible
Guest
Posts: n/a
 
      05-17-2009
"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

 
Reply With Quote
 
 
 
 
Lindsay.Rollo@paradisedotnetdotnz
Guest
Posts: n/a
 
      05-17-2009
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.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not open macro storage error While opening word document =?Utf-8?B?U2l2YXJhbWFuLlM=?= ASP .Net 1 07-24-2007 11:13 AM
Macro error prob in word Joni Computer Support 1 03-11-2005 01:21 PM
in S.E. Asia : Canon EOS 300d with 100 macro ED vs. Nikon D70 with Nikon 105 macro ? J. Cod Digital Photography 0 09-29-2004 05:46 AM
#define macro to enclose an older macro with strings Dead RAM C++ 20 07-14-2004 10:58 AM
macro name from macro? D Senthil Kumar C Programming 1 09-21-2003 07:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57