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
microsoft-word window popups microsoft
add a comment |
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
microsoft-word window popups microsoft
add a comment |
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
microsoft-word window popups microsoft
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
microsoft-word window popups microsoft
edited Nov 14 at 17:13
Twisty Impersonator
16.8k126090
16.8k126090
asked Nov 14 at 15:19
sadunkle
61
61
add a comment |
add a comment |
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.

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

add a comment |
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.

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

add a comment |
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.

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

add a comment |
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.

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

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.

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

answered Nov 14 at 18:39
Rich Michaels
1,0392210
1,0392210
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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