Solved

MS Word 2013 Document Question

Posted on 2016-11-03
9
19 Views
Last Modified: 2016-11-09
I have a MS Word 2013 document that was created by someone else.  On the document when you click on a link it prompts you to choose between two values in a list.  When you choose one of the values the information at the bottom of the page is then displayed and its content changes depending on which value you selected.

I'm trying to change the information which is displayed below but I'm not quite sure how to get it to display so I can change it.   If I change the information displayed after clicking the link then that's all that displays next time I open the form.

Any thoughts .....
0
Comment
Question by:jtbrown1111
  • 5
  • 3
9 Comments
 
LVL 20

Expert Comment

by:CompProbSolv
Comment Utility
Not sure I'm understanding this correctly.  Are you wanting to change what gets put at the bottom of the page automatically?  If so, then you'd likely have to look at the macro that is used to generate the text.

Can you post the document here?
0
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 250 total points
Comment Utility
It is proabably, but not certainly, a Macrobutton Field. If it is, you can see the field code using the Alt+F9 toggle.

It might look like this:
Display Text

Open in new window


and like this when the field code is visible
{ MACROBUTTON  HelloMacro Display Text }

Open in new window


Here is a simple macro to append text at the end of the document
Sub HelloMacro()
    ActiveDocument.Bookmarks("\EndOfDoc").Range.Text = "Hello to you"
End Sub

Open in new window

To see the macro, you will have to open the VBA IDE (Alt+F11) . Hopefully the macro will be in the document's template or the Normal template. There is a chance that it is in a global template which you would have to open specifically in order to edit the macro.
0
 

Author Comment

by:jtbrown1111
Comment Utility
Here is the document I'm working with ......  Maybe this will help   You'll need to change the extension back to docm as it wouldn't let me upload it with it .....

Joel
Pain-Diary---Copy.txt
0
 
LVL 20

Assisted Solution

by:CompProbSolv
CompProbSolv earned 250 total points
Comment Utility
Go into Design Mode and look at clsSignature.  Within that you'll find Sub Insert.  I believe that is where you are getting the signatures.  I've not sorted through all of that code but this is where I think you need to look.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:jtbrown1111
Comment Utility
@ CompProbSolv,

Didn't find anything there .....        

Here is what is being called when the macro button is clicked .... maybe this will provide insight ..

+++++++++++++
Sub HideTable()
SelectFromList
Dim sSelected As String
sSelected = ApplicationGet("txtSelection")
If Left(sSelected, 5) = "Media" Then
    ActiveDocument.Bookmarks("tblMedial").Range.Font.Hidden = False
    ActiveDocument.Bookmarks("tblFacet").Range.Font.Hidden = True
Else
    ActiveDocument.Bookmarks("tblMedial").Range.Font.Hidden = True
    ActiveDocument.Bookmarks("tblFacet").Range.Font.Hidden = False
End If
   


End Sub
+++++++++++++
0
 

Accepted Solution

by:
jtbrown1111 earned 0 total points
Comment Utility
@ All,

Problem solved !!!     When I go into designmode the two hidden tables are displayed thus allowing me to change the data in them .......  

Thanks for everyone's help ....

Joel
0
 
LVL 20

Expert Comment

by:CompProbSolv
Comment Utility
I'm not seeing the macro button.

Note the comment in Sub Insert:
'insert the signature elements.

That sure looks like where the signature is inserted.
0
 

Author Comment

by:jtbrown1111
Comment Utility
@ CompProbSolv,

At the top of the form next to " PAIN DIARY" , is " Select Injection Type " ,  this is the macro button ..

The VB code is a bit confusing as its a complete set of coding that can be used on many different types of forms developed by this company for us.  This form is fairly simple and doesn't use most of it.

Joel
0
 

Author Closing Comment

by:jtbrown1111
Comment Utility
Input from both users guided me in places to look for the solution.  The form was ultimately designed in a different way with macros and hidden tables.  Without the help of both users I struggled knowing exactly how the form was designed .......
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

It is often necessary in this forum and others to illustrate Word fields as text with the field delimiters replaced with the curly brackets that the delimiters resemble when field codes are being displayed on the document. This means that the text c…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now