Company Name throughout document from popup window











up vote
1
down vote

favorite












using the following i was able to perfectly add the information i need to a document. However, i have multiple places the company name needs to go in the document. The bookmark wont allow me to have the same one twice. Is there a way to add like ("CompanyName1") to populate the same answer to the "Enter Company Name Here" WITHOUT having to fill out another window?



Sub Document_Open()

ActiveDocument.FormFields("CompanyName").Result = InputBox("Enter company name here")
ActiveDocument.FormFields("CompanyStreet").Result = InputBox("Enter the company's street address here")

End Sub









share|improve this question









New contributor




sadunkle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    1
    down vote

    favorite












    using the following i was able to perfectly add the information i need to a document. However, i have multiple places the company name needs to go in the document. The bookmark wont allow me to have the same one twice. Is there a way to add like ("CompanyName1") to populate the same answer to the "Enter Company Name Here" WITHOUT having to fill out another window?



    Sub Document_Open()

    ActiveDocument.FormFields("CompanyName").Result = InputBox("Enter company name here")
    ActiveDocument.FormFields("CompanyStreet").Result = InputBox("Enter the company's street address here")

    End Sub









    share|improve this question









    New contributor




    sadunkle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      using the following i was able to perfectly add the information i need to a document. However, i have multiple places the company name needs to go in the document. The bookmark wont allow me to have the same one twice. Is there a way to add like ("CompanyName1") to populate the same answer to the "Enter Company Name Here" WITHOUT having to fill out another window?



      Sub Document_Open()

      ActiveDocument.FormFields("CompanyName").Result = InputBox("Enter company name here")
      ActiveDocument.FormFields("CompanyStreet").Result = InputBox("Enter the company's street address here")

      End Sub









      share|improve this question









      New contributor




      sadunkle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      using the following i was able to perfectly add the information i need to a document. However, i have multiple places the company name needs to go in the document. The bookmark wont allow me to have the same one twice. Is there a way to add like ("CompanyName1") to populate the same answer to the "Enter Company Name Here" WITHOUT having to fill out another window?



      Sub Document_Open()

      ActiveDocument.FormFields("CompanyName").Result = InputBox("Enter company name here")
      ActiveDocument.FormFields("CompanyStreet").Result = InputBox("Enter the company's street address here")

      End Sub






      microsoft-word window popups microsoft






      share|improve this question









      New contributor




      sadunkle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      sadunkle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Nov 14 at 17:13









      Twisty Impersonator

      16.6k126090




      16.6k126090






      New contributor




      sadunkle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Nov 14 at 15:19









      sadunkle

      61




      61




      New contributor




      sadunkle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      sadunkle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      sadunkle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Use as StyleRef field. It works by assigning the original location where the Company Name, or Person's Name, or ... each a unique Style Name such as "TheCompanyName". Then in the locations where you want the value of "TheCompanyName" inserted, you insert a StyleRef field that specifies the Style Name to use.



          Below is a screen clip from a document that is using the title of the document, which on the cover page and repeating it later in the document. The Style Name in this example is "LGP Program Name". I have toggled on the field code so you could see how it's constructed.



          enter image description here



          The image below shows how it actually looks in the document.



          enter image description here






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            sadunkle is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375360%2fcompany-name-throughout-document-from-popup-window%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            Use as StyleRef field. It works by assigning the original location where the Company Name, or Person's Name, or ... each a unique Style Name such as "TheCompanyName". Then in the locations where you want the value of "TheCompanyName" inserted, you insert a StyleRef field that specifies the Style Name to use.



            Below is a screen clip from a document that is using the title of the document, which on the cover page and repeating it later in the document. The Style Name in this example is "LGP Program Name". I have toggled on the field code so you could see how it's constructed.



            enter image description here



            The image below shows how it actually looks in the document.



            enter image description here






            share|improve this answer

























              up vote
              1
              down vote













              Use as StyleRef field. It works by assigning the original location where the Company Name, or Person's Name, or ... each a unique Style Name such as "TheCompanyName". Then in the locations where you want the value of "TheCompanyName" inserted, you insert a StyleRef field that specifies the Style Name to use.



              Below is a screen clip from a document that is using the title of the document, which on the cover page and repeating it later in the document. The Style Name in this example is "LGP Program Name". I have toggled on the field code so you could see how it's constructed.



              enter image description here



              The image below shows how it actually looks in the document.



              enter image description here






              share|improve this answer























                up vote
                1
                down vote










                up vote
                1
                down vote









                Use as StyleRef field. It works by assigning the original location where the Company Name, or Person's Name, or ... each a unique Style Name such as "TheCompanyName". Then in the locations where you want the value of "TheCompanyName" inserted, you insert a StyleRef field that specifies the Style Name to use.



                Below is a screen clip from a document that is using the title of the document, which on the cover page and repeating it later in the document. The Style Name in this example is "LGP Program Name". I have toggled on the field code so you could see how it's constructed.



                enter image description here



                The image below shows how it actually looks in the document.



                enter image description here






                share|improve this answer












                Use as StyleRef field. It works by assigning the original location where the Company Name, or Person's Name, or ... each a unique Style Name such as "TheCompanyName". Then in the locations where you want the value of "TheCompanyName" inserted, you insert a StyleRef field that specifies the Style Name to use.



                Below is a screen clip from a document that is using the title of the document, which on the cover page and repeating it later in the document. The Style Name in this example is "LGP Program Name". I have toggled on the field code so you could see how it's constructed.



                enter image description here



                The image below shows how it actually looks in the document.



                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 14 at 18:39









                Rich Michaels

                1,0292210




                1,0292210






















                    sadunkle is a new contributor. Be nice, and check out our Code of Conduct.










                     

                    draft saved


                    draft discarded


















                    sadunkle is a new contributor. Be nice, and check out our Code of Conduct.













                    sadunkle is a new contributor. Be nice, and check out our Code of Conduct.












                    sadunkle is a new contributor. Be nice, and check out our Code of Conduct.















                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375360%2fcompany-name-throughout-document-from-popup-window%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Plaza Victoria

                    Brian Clough

                    Cáceres