Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Aug 2001
    Location
    Australia
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CustomProperties (WD2000)

    I need to add a Custom Property to my document as part of a large number of properties being added via a macro.

    Could anyone help me get the Type=Number to accept a value that contains a decimal point?

    I have tried the following (with and without the Format portion) but the value given to the property is always 2 (ie the .5 part is being truncated)

    ActiveDocument.CustomDocumentProperties.Add
    Name:="XXX",
    LinkToContent:=False,
    Type:=msoPropertyTypeNumber,
    Value:=Format(2.5, "0.0")

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: CustomProperties (WD2000)

    See this thread: <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=wrd&Number=20879>Wayward Custom Document Property</A>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •