MS Word Prompt User for Input and replace text in document
I have a document in ms word 2010 which we use for documentation purposes on installing some software on our servers.
The document uses <SID>
text which indicates to the viewer the text needs to be changed to match whichever server you are working on.
For example:
SQL> !mkdir /oracle/<SID>/mirrlogA/cntrl
SQL> !mv /oracle/<SID>/sapdata1/cntrl/cntrl<SID>.dbf /oracle/<SID>/mirrlogA/cntrl/
SQL> !rm /oracle/<SID>/112_64/dbs/spfile<SID>.ora
SQL> create spfile='/oracle/<SID>/112_64/dbs/spfile<SID>.ora' from pfile='$ORACLE_HOME/dbs/init<SID>.ora';
We have to manually edit each of these or use a Find + Replace for <SID>
-> SRS
.. Is there a way i can define a document property in place of each of these entries, and then use a macro to prompt the viewer for the SID and it will update all of this automatically?
microsoft-word
add a comment |
I have a document in ms word 2010 which we use for documentation purposes on installing some software on our servers.
The document uses <SID>
text which indicates to the viewer the text needs to be changed to match whichever server you are working on.
For example:
SQL> !mkdir /oracle/<SID>/mirrlogA/cntrl
SQL> !mv /oracle/<SID>/sapdata1/cntrl/cntrl<SID>.dbf /oracle/<SID>/mirrlogA/cntrl/
SQL> !rm /oracle/<SID>/112_64/dbs/spfile<SID>.ora
SQL> create spfile='/oracle/<SID>/112_64/dbs/spfile<SID>.ora' from pfile='$ORACLE_HOME/dbs/init<SID>.ora';
We have to manually edit each of these or use a Find + Replace for <SID>
-> SRS
.. Is there a way i can define a document property in place of each of these entries, and then use a macro to prompt the viewer for the SID and it will update all of this automatically?
microsoft-word
add a comment |
I have a document in ms word 2010 which we use for documentation purposes on installing some software on our servers.
The document uses <SID>
text which indicates to the viewer the text needs to be changed to match whichever server you are working on.
For example:
SQL> !mkdir /oracle/<SID>/mirrlogA/cntrl
SQL> !mv /oracle/<SID>/sapdata1/cntrl/cntrl<SID>.dbf /oracle/<SID>/mirrlogA/cntrl/
SQL> !rm /oracle/<SID>/112_64/dbs/spfile<SID>.ora
SQL> create spfile='/oracle/<SID>/112_64/dbs/spfile<SID>.ora' from pfile='$ORACLE_HOME/dbs/init<SID>.ora';
We have to manually edit each of these or use a Find + Replace for <SID>
-> SRS
.. Is there a way i can define a document property in place of each of these entries, and then use a macro to prompt the viewer for the SID and it will update all of this automatically?
microsoft-word
I have a document in ms word 2010 which we use for documentation purposes on installing some software on our servers.
The document uses <SID>
text which indicates to the viewer the text needs to be changed to match whichever server you are working on.
For example:
SQL> !mkdir /oracle/<SID>/mirrlogA/cntrl
SQL> !mv /oracle/<SID>/sapdata1/cntrl/cntrl<SID>.dbf /oracle/<SID>/mirrlogA/cntrl/
SQL> !rm /oracle/<SID>/112_64/dbs/spfile<SID>.ora
SQL> create spfile='/oracle/<SID>/112_64/dbs/spfile<SID>.ora' from pfile='$ORACLE_HOME/dbs/init<SID>.ora';
We have to manually edit each of these or use a Find + Replace for <SID>
-> SRS
.. Is there a way i can define a document property in place of each of these entries, and then use a macro to prompt the viewer for the SID and it will update all of this automatically?
microsoft-word
microsoft-word
asked Jan 7 '14 at 19:45
gorelativegorelative
303515
303515
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Most likely you want to use an ASK field which prompts the user for information and inserts the result into bookmark locations in the document. You will need a macro to make the prompt appear when the document is opened.
There are other ways you may want to go about this, and Greg Maxey has a great page which goes into detail about all of these possible techniques (including using an ASK field) so I suggest to read up on that.
add a comment |
There are several options:
- Totally different: a friend of mine runs a company that works a lot on UNIX platforms. They use LaTeX to generate documentation. LaTeX is a language for typesetting in high quality. On most UNIX and Windows versions it can be installed simply. Output in PDF and other formats.
- We ourselves use Microsoft Word with Invantive Composition (own product); it allows you to pull data from a database, webservice or alike and put them in tables and fields in Word and in the Word document properties.
- I've seen an Oracle consultant generating RTF from the UNIX prompt; it is simply to script on UNIX, even when the UNIX flavour has no UNICODE support. RTF can then be mailed using sendmail, transferred using Samba or alike and opened in Word.
- For simple scenarios with one or few fields and low production volume you can create a custom property in Word (Start -> Document Properties -> Advanced) and insert that using the Insert ribbon. Change value in Document properties, ctrl+a to select all, ctrl+f9 to update the values, voila.
I did not see your answer when rejecting your edit. Now when I see the answer the edit makes more sense but I would still reject it. The question itself has nothing to do with the tags you added. They are related only to some special examples of multiple possible solutions.
– pabouk
Jan 8 '14 at 8:15
Thank you for the explanation. I was not sure when adding the tags on the question whether it is intended to elaborate tags to what options might help the person asking the question. Thanks, I will reflect it in my future assistance.
– Guido Leenders
Jan 8 '14 at 11:53
add a comment |
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',
autoActivateHeartbeat: false,
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
});
}
});
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%2f698290%2fms-word-prompt-user-for-input-and-replace-text-in-document%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Most likely you want to use an ASK field which prompts the user for information and inserts the result into bookmark locations in the document. You will need a macro to make the prompt appear when the document is opened.
There are other ways you may want to go about this, and Greg Maxey has a great page which goes into detail about all of these possible techniques (including using an ASK field) so I suggest to read up on that.
add a comment |
Most likely you want to use an ASK field which prompts the user for information and inserts the result into bookmark locations in the document. You will need a macro to make the prompt appear when the document is opened.
There are other ways you may want to go about this, and Greg Maxey has a great page which goes into detail about all of these possible techniques (including using an ASK field) so I suggest to read up on that.
add a comment |
Most likely you want to use an ASK field which prompts the user for information and inserts the result into bookmark locations in the document. You will need a macro to make the prompt appear when the document is opened.
There are other ways you may want to go about this, and Greg Maxey has a great page which goes into detail about all of these possible techniques (including using an ASK field) so I suggest to read up on that.
Most likely you want to use an ASK field which prompts the user for information and inserts the result into bookmark locations in the document. You will need a macro to make the prompt appear when the document is opened.
There are other ways you may want to go about this, and Greg Maxey has a great page which goes into detail about all of these possible techniques (including using an ASK field) so I suggest to read up on that.
answered Jan 7 '14 at 22:57
AdamAdam
5,99621835
5,99621835
add a comment |
add a comment |
There are several options:
- Totally different: a friend of mine runs a company that works a lot on UNIX platforms. They use LaTeX to generate documentation. LaTeX is a language for typesetting in high quality. On most UNIX and Windows versions it can be installed simply. Output in PDF and other formats.
- We ourselves use Microsoft Word with Invantive Composition (own product); it allows you to pull data from a database, webservice or alike and put them in tables and fields in Word and in the Word document properties.
- I've seen an Oracle consultant generating RTF from the UNIX prompt; it is simply to script on UNIX, even when the UNIX flavour has no UNICODE support. RTF can then be mailed using sendmail, transferred using Samba or alike and opened in Word.
- For simple scenarios with one or few fields and low production volume you can create a custom property in Word (Start -> Document Properties -> Advanced) and insert that using the Insert ribbon. Change value in Document properties, ctrl+a to select all, ctrl+f9 to update the values, voila.
I did not see your answer when rejecting your edit. Now when I see the answer the edit makes more sense but I would still reject it. The question itself has nothing to do with the tags you added. They are related only to some special examples of multiple possible solutions.
– pabouk
Jan 8 '14 at 8:15
Thank you for the explanation. I was not sure when adding the tags on the question whether it is intended to elaborate tags to what options might help the person asking the question. Thanks, I will reflect it in my future assistance.
– Guido Leenders
Jan 8 '14 at 11:53
add a comment |
There are several options:
- Totally different: a friend of mine runs a company that works a lot on UNIX platforms. They use LaTeX to generate documentation. LaTeX is a language for typesetting in high quality. On most UNIX and Windows versions it can be installed simply. Output in PDF and other formats.
- We ourselves use Microsoft Word with Invantive Composition (own product); it allows you to pull data from a database, webservice or alike and put them in tables and fields in Word and in the Word document properties.
- I've seen an Oracle consultant generating RTF from the UNIX prompt; it is simply to script on UNIX, even when the UNIX flavour has no UNICODE support. RTF can then be mailed using sendmail, transferred using Samba or alike and opened in Word.
- For simple scenarios with one or few fields and low production volume you can create a custom property in Word (Start -> Document Properties -> Advanced) and insert that using the Insert ribbon. Change value in Document properties, ctrl+a to select all, ctrl+f9 to update the values, voila.
I did not see your answer when rejecting your edit. Now when I see the answer the edit makes more sense but I would still reject it. The question itself has nothing to do with the tags you added. They are related only to some special examples of multiple possible solutions.
– pabouk
Jan 8 '14 at 8:15
Thank you for the explanation. I was not sure when adding the tags on the question whether it is intended to elaborate tags to what options might help the person asking the question. Thanks, I will reflect it in my future assistance.
– Guido Leenders
Jan 8 '14 at 11:53
add a comment |
There are several options:
- Totally different: a friend of mine runs a company that works a lot on UNIX platforms. They use LaTeX to generate documentation. LaTeX is a language for typesetting in high quality. On most UNIX and Windows versions it can be installed simply. Output in PDF and other formats.
- We ourselves use Microsoft Word with Invantive Composition (own product); it allows you to pull data from a database, webservice or alike and put them in tables and fields in Word and in the Word document properties.
- I've seen an Oracle consultant generating RTF from the UNIX prompt; it is simply to script on UNIX, even when the UNIX flavour has no UNICODE support. RTF can then be mailed using sendmail, transferred using Samba or alike and opened in Word.
- For simple scenarios with one or few fields and low production volume you can create a custom property in Word (Start -> Document Properties -> Advanced) and insert that using the Insert ribbon. Change value in Document properties, ctrl+a to select all, ctrl+f9 to update the values, voila.
There are several options:
- Totally different: a friend of mine runs a company that works a lot on UNIX platforms. They use LaTeX to generate documentation. LaTeX is a language for typesetting in high quality. On most UNIX and Windows versions it can be installed simply. Output in PDF and other formats.
- We ourselves use Microsoft Word with Invantive Composition (own product); it allows you to pull data from a database, webservice or alike and put them in tables and fields in Word and in the Word document properties.
- I've seen an Oracle consultant generating RTF from the UNIX prompt; it is simply to script on UNIX, even when the UNIX flavour has no UNICODE support. RTF can then be mailed using sendmail, transferred using Samba or alike and opened in Word.
- For simple scenarios with one or few fields and low production volume you can create a custom property in Word (Start -> Document Properties -> Advanced) and insert that using the Insert ribbon. Change value in Document properties, ctrl+a to select all, ctrl+f9 to update the values, voila.
answered Jan 8 '14 at 5:42
Guido LeendersGuido Leenders
649318
649318
I did not see your answer when rejecting your edit. Now when I see the answer the edit makes more sense but I would still reject it. The question itself has nothing to do with the tags you added. They are related only to some special examples of multiple possible solutions.
– pabouk
Jan 8 '14 at 8:15
Thank you for the explanation. I was not sure when adding the tags on the question whether it is intended to elaborate tags to what options might help the person asking the question. Thanks, I will reflect it in my future assistance.
– Guido Leenders
Jan 8 '14 at 11:53
add a comment |
I did not see your answer when rejecting your edit. Now when I see the answer the edit makes more sense but I would still reject it. The question itself has nothing to do with the tags you added. They are related only to some special examples of multiple possible solutions.
– pabouk
Jan 8 '14 at 8:15
Thank you for the explanation. I was not sure when adding the tags on the question whether it is intended to elaborate tags to what options might help the person asking the question. Thanks, I will reflect it in my future assistance.
– Guido Leenders
Jan 8 '14 at 11:53
I did not see your answer when rejecting your edit. Now when I see the answer the edit makes more sense but I would still reject it. The question itself has nothing to do with the tags you added. They are related only to some special examples of multiple possible solutions.
– pabouk
Jan 8 '14 at 8:15
I did not see your answer when rejecting your edit. Now when I see the answer the edit makes more sense but I would still reject it. The question itself has nothing to do with the tags you added. They are related only to some special examples of multiple possible solutions.
– pabouk
Jan 8 '14 at 8:15
Thank you for the explanation. I was not sure when adding the tags on the question whether it is intended to elaborate tags to what options might help the person asking the question. Thanks, I will reflect it in my future assistance.
– Guido Leenders
Jan 8 '14 at 11:53
Thank you for the explanation. I was not sure when adding the tags on the question whether it is intended to elaborate tags to what options might help the person asking the question. Thanks, I will reflect it in my future assistance.
– Guido Leenders
Jan 8 '14 at 11:53
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f698290%2fms-word-prompt-user-for-input-and-replace-text-in-document%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