+ Reply to Thread
Results 1 to 21 of 21

Defeat "Document contains Ink Annotations" message when saving.

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Defeat "Document contains Ink Annotations" message when saving.

    I'm using the code below, which I found at Kutools, https://www.extendoffice.com/documen...-files.html#a1

    The macro works just fine at replacing in all Word docs, with one exception; every file pops up a message saying "Document contain's Ink Annotions". I have to hit OK to get past each one, whereupon I get to set through the "Saving" msgbox. Is there a way to suppress these messages and just allow the code to run?
    Any help is appreciated.
    Please Login or Register  to view this content.
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Defeat "Document contains Ink Annotations" message when saving.

    Try adding these lines around your Save statement:
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Defeat "Document contains Ink Annotations" message when saving.

    I thought for sure that would work. I added them like so:

    Please Login or Register  to view this content.
    Didn't make any change in the behavior.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Defeat "Document contains Ink Annotations" message when saving.

    If you can attach a Word file with ink annotations I'll try to do more testing.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Defeat "Document contains Ink Annotations" message when saving.

    Sorry it took so long, I was out of town trying to keep my mom out of prison. I've attached a sample.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Defeat "Document contains Ink Annotations" message when saving.

    I never heard anything back on this. Still having the issue, still not knowing how to resolve it.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Defeat "Document contains Ink Annotations" message when saving.

    I ran this code using this file, with no messages about ink. It ran successfully.

    Your code opens files with .docx extensions but the file you provided has a .doc extension. I had to change the code to use it with this file.
    Please Login or Register  to view this content.
    Your code calls another macro, which you did not provide.
    Please Login or Register  to view this content.
    (Evidently if the macro does not exist no error occurs.) It is possible that this macro is the one that is causing your messages about ink but I have no way to find out.

  8. #8
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Defeat "Document contains Ink Annotations" message when saving.

    6StringJazzer,
    Sorry, not sure about the "NewMacros" macro, not sure what that was about. Here's the latest version of my macro that I'm trying, and I've also attached a recent document that gives me the message. As an FYI, if I try to do a manual save on the document it gives me the same message, so it has something to do with Word, not necessarily Adobe.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Defeat "Document contains Ink Annotations" message when saving.

    FYi that I'm still having the same issue.

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Defeat "Document contains Ink Annotations" message when saving.

    I ran your code on the file you attached and did not get any errors. I did not get it during a manual save either.

  11. #11
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Defeat "Document contains Ink Annotations" message when saving.

    But I DO get the message, and I don't know why. It happens with 99% of the Word documents I have to save as PDFs, which I do about 30 times per day.

  12. #12
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Defeat "Document contains Ink Annotations" message when saving.

    That message has nothing to do with any of the code you've posted. That said, the code you've posted in posts #1 & #8 are fundamentally different, so I don't know how you can say in post #8:
    Here's the latest version of my macro
    Perhaps you'd care to explain what you're trying to do?
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  13. #13
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Defeat "Document contains Ink Annotations" message when saving.

    Paul, I've been watching this since last July so I think I know what jomili is trying to do but no idea what the problem is.

    To boil it down, when jomili is editing a file in Word, then does Export to PDF, Word presents an error message saying "Document contains Ink Annotations". However, when I do the same thing with the same file, I do not get this error.

    The code is a bit of a red herring since all it does is automate the export, so it also causes the error message to appear. But the root cause has nothing to do with the code.

  14. #14
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Defeat "Document contains Ink Annotations" message when saving.

    Quote Originally Posted by 6StringJazzer View Post
    when jomili is editing a file in Word, then does Export to PDF, Word presents an error message saying "Document contains Ink Annotations"
    But post #1 contains no export code; all it has is a Find/Replace followed by Save for selected files only. Post #8 does a PDF export of all documents in a folder (without any files being selected), but has no Find/Replace code.

    Both sets of code are inefficient at what they do.
    Quote Originally Posted by 6StringJazzer View Post
    the root cause has nothing to do with the code.
    Agreed 100%

  15. #15
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Defeat "Document contains Ink Annotations" message when saving.

    Quote Originally Posted by macropod View Post
    But post #1 contains no export code; all it has is a Find/Replace followed by Save for selected files only. Post #8 does a PDF export of all documents in a folder (without any files being selected), but has no Find/Replace code.
    Yes, I had forgotten what the original code did. The error seems to happen on a Save or an Export, according to OP's accounts.

    I have used touchscreen machines that have inking features but have never run across that error even using a file that does have ink annotations.

  16. #16
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Defeat "Document contains Ink Annotations" message when saving.

    6StringJazzer has it right, and the macros obscure the issue. The issue is, when I make a change on one of these Word documents, or try to save it as a PDF, either manually or through a macro, I get the message. I understand I'm the only one, but that doesn't help me resolve it.

    I get TONS of Word docs I have to convert to PDFs, and I also have to do replacements. I'd love more efficient macros t o do that, but first I have to find a way to get past the error message.

  17. #17
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Defeat "Document contains Ink Annotations" message when saving.

    I suspect the problem is related to the Document Inspector Options the OP has employed via File|Options|Trust Center>Trust Center Settings>Privacy Options. I'd suggest unchecking 'Warn before printing, saving or sending a file that contains tracked changes or comments' there.

  18. #18
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Defeat "Document contains Ink Annotations" message when saving.

    That makes sense, but in practice I'm not having much luck. If i open one of these documents, the "Warn" is clicked on. If I click it off, close and save it, when I reopen, it's back on. i WAS able to save the change to my NORMAL Template, but when I open a new document (or an old one) the Warn is click back on.

  19. #19
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Defeat "Document contains Ink Annotations" message when saving.

    If you need to retain those settings, then for the purposes of your code you could use something along the lines of:
    Please Login or Register  to view this content.
    or, for more flexibility with systems that may not be using that setting:
    Please Login or Register  to view this content.
    Last edited by macropod; 04-12-2021 at 09:15 PM.

  20. #20
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Defeat "Document contains Ink Annotations" message when saving.

    Macropod,
    You're a lifesaver! Your addition did the trick. My macro in it's current state is below. It's working, but I'm having a screen issue I thought "Screen Updating" would take away, but didn't. I see every document open. There's no warnings, and I don't actually see the document, there's just a flicker as a new one is opened and closed. Can anything be done for that? Also interested in any way to improve this code.
    Please Login or Register  to view this content.

  21. #21
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Defeat "Document contains Ink Annotations" message when saving.

    For example:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. When downloading, I'm receiving "The document is corrupt..." message using Win7
    By SteveHu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2012, 11:03 AM
  2. MSoffice Outlook 2003 message to be saved in C dir with the file name "From" "Sent" "Sub"
    By shailendra0509 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2012, 01:32 AM
  3. "Document not saved" message
    By will in forum Excel General
    Replies: 2
    Last Post: 07-25-2006, 10:55 AM
  4. [SOLVED] Excel 97 message, "A document with the name '-----.xls' is already open. . . ."
    By Neil Harrington in forum Excel General
    Replies: 9
    Last Post: 07-10-2006, 03:29 AM
  5. [SOLVED] How do I turn off "document sent to printer" message?
    By Judy Y in forum Excel General
    Replies: 7
    Last Post: 04-01-2006, 09:50 PM
  6. [SOLVED] "A document with the name *.xls is already open" error message
    By James Houston in forum Excel General
    Replies: 1
    Last Post: 12-12-2005, 04:55 PM
  7. "Document not saved" error message
    By Richard Clayton in forum Excel General
    Replies: 0
    Last Post: 03-11-2005, 01:50 PM
  8. Replies: 1
    Last Post: 01-24-2005, 08:06 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1