Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Hong Kong
    Posts
    359
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is it possible to set bookmark to the combination of date & time?
    When setting {SET ServiceDate 3/29/2008 18:15}, {ServiceDate \@ "HH:mm"} shows 00:00 erroneously.
    What's wrong with my ServiceDate bookmark setting?
    Thanks.
    Armstrong

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    You should set the bookmark to a string enclosed in quotes:

    {SET ServiceDate "3/29/2008 18:15"}

  3. #3
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Hong Kong
    Posts
    359
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='768141' date='30-Mar-2009 04:03']You should set the bookmark to a string enclosed in quotes:
    {SET ServiceDate "3/29/2008 18:15"}[/quote]
    Hi Hans,
    Your solution works like a charm. Nonetheless, in the past, I always set date bookmarks without quotes such as {SET HearingDate 7/15/2009} and {SET HearingTime 09:00 } without a glitch. Was my unquoted bookmark setting wrong in the first place? Please enlighten me. Thanks.
    Armstrong

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    It works without quotes as long as the value you set the bookmark to doesn't contain spaces. If the text contains spaces but isn't enclosed in quotes, Word sets the bookmark to the first "word" after the bookmark name. Quotes force Word to use the entire text.

  5. #5
    3 Star Lounger
    Join Date
    Mar 2009
    Location
    Hong Kong
    Posts
    359
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='768160' date='30-Mar-2009 06:31']It works without quotes as long as the value you set the bookmark to doesn't contain spaces. If the text contains spaces but isn't enclosed in quotes, Word sets the bookmark to the first "word" after the bookmark name. Quotes force Word to use the entire text.[/quote]
    Thanks a lot. I didn't know the "spaces" thing before. You're my guru. Thanks again.
    Armstrong

Posting Permissions

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