Consulting

Results 1 to 3 of 3

Thread: Key press in bookmark

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Regular
    Joined
    Jul 2010
    Posts
    29
    Location

    Key press in bookmark

    Hey,

    Is it possible to detect text change (key press) inside a bookmark and do something?

    We use barcodes to automate our OCR scanning - presently someone needs to type in a reference (which is in a bookmark), then manually update a field which uses the bookmarks value as its value. The fields font is set a barcode one.

    If I could automatically update that field after every key press that would be cool.

    Thanks

  2. #2
    VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Word has no event you could trap for that. However, if you were to do the input in a content control, you could use a ContentControlOnExit macro to do the updating immediately you exit that content control.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    VBAX Regular
    Joined
    Jul 2010
    Posts
    29
    Location
    Thanks.

    Just tried that and it does seem to work. But if I save it as a dotm template and publish it, when a new document is generated from it, the content control is missing, so it doesn't work.

    If I directly edit the dotm, the content control is still there.

    ?

    EDIT: It's because we've defaulted to compatibility mode!

Tags for this Thread

Posting Permissions

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