Activate markup in word 2013

Hello,

I have been using a application in word 2010 with VBA,which used to create multiple pages of a document.

"ActiveWindow.ActivePane.View.ShowAll = True" command is used to activate markup in Word2010 and later these markup will be replaced with 

text from building block organiser.

I am trying to upgrade from word2010 to word2013.

problem:  After execution of "ActiveWindow.ActivePane.View.ShowAll = True" command in word 2013 , the markups not generated.

can somebody help me to fix this issue.

Thanks in advance

psthariharan

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

Until there are changes in the document, there is no markup to show.
Microsoft MVP (Word) since 1999
Fairhope, Alabama USA
http://ssbarnhill.com
http://wordfaqs.ssbarnhill.com
Screen shots captured with TechSmith's Snagit

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hello

Thanks Suzanne 

The process flow is ,after selection of values on a form and button click ,

a) one boiler will be selected with some predefined information (eg: abc.docx)

b)  "ActiveWindow.ActivePane.View.ShowAll = True" command is fired to activate markups

c) markups will be replaced with text blocks from building organiser

d) remove all unneccessary characters

e) saving as final document with multiples pages

This situation is working in Word2010.

Since markup is not activated in 2013 through the command, i am struck and not able to add additional text blocks to make a perfect document.

could you please guide me 

Thanks

psthariharan

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

ActiveWindow.ActivePane.View.ShowAll = True does NOT turn on track changes.  What it does is cause nonprinting characters (such as hidden text, tab marks, space marks, and paragraph marks) to be displayed. 

In addition, it certainly does have that effect in Word 2013.

Perhaps what you want is:

ActiveDocument.ActiveWindow.ActivePane.View.ShowBookmarks = True

which also most definitely works in Word 2013

Hope this helps,
Doug Robbins - MVP Office Apps & Services (Word)
dougrobbinsmvp@gmail.com
It's time to replace ‘Diversity, Equity & Inclusion’ with ‘Excellence, Opportunity & Civility’ - V Ramaswamy

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

It seems we have run into a language issue here. Markup consists of comments and tracked changes and is a result of using the Track Changes feature. What you appear to be referring to is bookmarks. Doug has told you how to handle those.
Microsoft MVP (Word) since 1999
Fairhope, Alabama USA
http://ssbarnhill.com
http://wordfaqs.ssbarnhill.com
Screen shots captured with TechSmith's Snagit

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hello

 

Thanks Doug and Suzanne.

 

Doug you are right.

I am expecting some characters like @0001@*** Email address is removed for privacy *** ...

Here starts with @ will be replaced with blank and abc.050.14 will be replace with text block from building block organizer.

In 2010 , after execution "ActiveWindow.ActivePane.View.ShowAll = True" all these characters will be displayed.

Unfortunately “ActiveDocument.ActiveWindow.ActivePane.View.ShowBookmarks = True” also not working in 2013. 

Any insight will be helpful.

Regards

psthariharan

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Your expectations don't match what Word can do. Displaying bookmarks will do nothing if you have not inserted bookmarks around your placeholder text. And now it's even less clear what you expect to happen with regard to replacement. Please tell us exactly what you're trying to do, how you expect the original document to be set up, where Word is supposed to find the text that will replace your placeholders, etc. I can tell you how to do a lot of this manually, but it you're trying to automate it with VBA, then Doug will have to help.

It's not clear whether you want to replace your placeholders with building blocks (which are pre-made and static) or with data entered by the user (as with a UserForm). In any case, the placeholders you describe would be displayed without displaying either nonprinting characters nor bookmarks. If they are fields of some sort, then toggling fields (Alt+F9) might be what you're looking for.

Microsoft MVP (Word) since 1999
Fairhope, Alabama USA
http://ssbarnhill.com
http://wordfaqs.ssbarnhill.com
Screen shots captured with TechSmith's Snagit

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hello

Sorry for the confusion and thanks for your patience.

"@0001@*** Email address is removed for privacy ***" is just given as an example not exactly same as word create.

The final document is combination of information as given below

Boiler(predefined information-- a .docx file)+ UserForm data+ building blocks

In Code , by using AttachedTemplate a .dotx file will be attached which is having hundreds of building blocks(static content).

Through For Each.... Iteration , finding the nonprinting characters position and replace each with  building blocks from .dotx file which is already attached.

All these are automated. when user clicks submit button on Form all these activities are happening and a final document is ready to save. From Form minimum informations are capturing like Name,date,type etc...

Note: The document has some place holders like [Name],[Date] etc. 

          which will be replaced with data entered by the user (UserForm).

          The non printing characters starts with @ is ignored and it simply replace with " "(space)

          Alphanumeric non printing characters are replaced with building blocks. 

         Eg. abc.050.14 is replaced with a paragraph from building blocks in .dotx file.

         so finally @*** Email address is removed for privacy *** will be changed to "    This is test document"

Regards

psthariharan

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Well, clearly you're going to need VBA help, so I'm backing out. If Doug wants to continue, I imagine he'll have to look at a copy of your template and target document.

Microsoft MVP (Word) since 1999
Fairhope, Alabama USA
http://ssbarnhill.com
http://wordfaqs.ssbarnhill.com
Screen shots captured with TechSmith's Snagit

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thanks Suzanne.

The first challenge is to activate or display non printing characters in document.

Regards

psthariharan

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

If there are any bookmarks in the document, running the following code in Word 2013 will most definitely cause the bookmarks to be displayed by the appearance of  [ ] around the text that enclosed within the bookmark, or a single | if there is nothing contained within the bookmark

ActiveDocument.ActiveWindow.ActivePane.View.ShowBookmarks = True

In addition, running the following code in Word 2013

ActiveWindow.ActivePane.View.ShowAll = True

most definitely does cause nonprinting characters (such as hidden text, tab marks, space marks, and paragraph marks) to be displayed. 

Hope this helps,
Doug Robbins - MVP Office Apps & Services (Word)
dougrobbinsmvp@gmail.com
It's time to replace ‘Diversity, Equity & Inclusion’ with ‘Excellence, Opportunity & Civility’ - V Ramaswamy

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

 
 

Question Info


Last updated August 25, 2022 Views 245 Applies to: