Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MS Word 2013 Document Question

Posted on 2016-11-03
9
Medium Priority
?
33 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 22

Expert Comment

by:CompProbSolv
ID: 41873364
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 1000 total points
ID: 41873909
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
ID: 41874510
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 22

Assisted Solution

by:CompProbSolv
CompProbSolv earned 1000 total points
ID: 41874648
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
 

Author Comment

by:jtbrown1111
ID: 41874733
@ 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
ID: 41874755
@ 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 22

Expert Comment

by:CompProbSolv
ID: 41874766
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
ID: 41874803
@ 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
ID: 41880272
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you work with Word a lot, you probably use styles. If you use styles a lot, you've probably balled your fist more often than not when working with the ribbon. In Word 2007/2010, one of the things that I find missing when using styles is a quic…
Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.

972 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