Hide text in MSWord 2013 using macro

Discussion in 'Word' started by Creative_works, Dec 12, 2016.

  1. Creative_works

    Creative_works

    Joined:
    Dec 12, 2016
    Messages:
    1
    Likes Received:
    0
    Hey everyone,
    I am wanting to make a word document for a friend of mine kind of a surprise gift to her. I was wanting to create a document that would hide the text until a certain date was true or if the correct password was entered. I was thinking I could use an ActiveX checkbox that when checked it would prompt her with a message saying "document section is visible at xx/xx/xxxx or type in password: "
    I was planing on using a simple If then statement with the hideselection = true or false depending if the datevalue matched the date. However, I am very new to programming in VBA, so if anyone knows any information that would help me achieve this or the projects probability I would be very grateful.
    Thanks and Happy Holidays!
     
    Creative_works, Dec 12, 2016
    #1
    1. Advertisements

  2. Creative_works

    macropod

    Joined:
    Mar 2, 2012
    Messages:
    167
    Likes Received:
    10
    You can't reliably hide text that way in Word. Simply formatting it has hidden doesn't mean the other person won't be able to see - or print (even without seeing) - the hidden text. That's because Word's hidden text display and print settings are controlled by the users Word configuration. For example, simply clicking on the ΒΆ symbol on the Ribbon's home tab will toggle hidden text display on/off. That said, there are ways to conditionally dislpay/print content. See, for example, Use Date (And/Or Time) Comparisons To Vary Text in my Microsoft Word Date Calculation Tutorial, at:
    http://windowssecrets.com/forums/showthread.php/154368-Microsoft-Word-Date-Calculation-Tutorial
    or:
    http://www.gmayor.com/downloads.htm#Third_party
    Do read the document's introductory material.
     
    macropod, Dec 12, 2016
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. duckflesh
    Replies:
    0
    Views:
    1,352
    duckflesh
    Mar 31, 2014
  2. tpthrshr
    Replies:
    1
    Views:
    1,839
  3. usercloud
    Replies:
    0
    Views:
    1,119
    usercloud
    Nov 21, 2014
  4. Erin Nugent
    Replies:
    0
    Views:
    704
    Erin Nugent
    Feb 2, 2015
  5. Veronica Loria
    Replies:
    1
    Views:
    267
    Veronica Loria
    Nov 28, 2015
  6. Jerry 00769

    Word 2013 DDE merge to Excel file

    Jerry 00769, Jan 21, 2016, in forum: Word
    Replies:
    0
    Views:
    284
    Jerry 00769
    Jan 21, 2016
  7. Jerry 00769
    Replies:
    0
    Views:
    225
    Jerry 00769
    Jan 30, 2016
  8. Jerry 00769
    Replies:
    0
    Views:
    390
    Jerry 00769
    Jan 30, 2016
Loading...