Word 2010: Find a single word at the end of the line
Is there a way to find any lines in a Word document then end with a single woes at the end of the visible line?
This example if of one line, and I want to find it in a whole document, as it ends with a single word at the last visible line.
Also, is there a way to find a certain word "minim", given that it shows at the end of the visible line? And ignore it if it shows in the middle of any line?
microsoft-word microsoft-word-2010 wildcards
add a comment |
Is there a way to find any lines in a Word document then end with a single woes at the end of the visible line?
This example if of one line, and I want to find it in a whole document, as it ends with a single word at the last visible line.
Also, is there a way to find a certain word "minim", given that it shows at the end of the visible line? And ignore it if it shows in the middle of any line?
microsoft-word microsoft-word-2010 wildcards
add a comment |
Is there a way to find any lines in a Word document then end with a single woes at the end of the visible line?
This example if of one line, and I want to find it in a whole document, as it ends with a single word at the last visible line.
Also, is there a way to find a certain word "minim", given that it shows at the end of the visible line? And ignore it if it shows in the middle of any line?
microsoft-word microsoft-word-2010 wildcards
Is there a way to find any lines in a Word document then end with a single woes at the end of the visible line?
This example if of one line, and I want to find it in a whole document, as it ends with a single word at the last visible line.
Also, is there a way to find a certain word "minim", given that it shows at the end of the visible line? And ignore it if it shows in the middle of any line?
microsoft-word microsoft-word-2010 wildcards
microsoft-word microsoft-word-2010 wildcards
edited Jan 4 at 14:40
Thor
4,58312438
4,58312438
asked Jan 4 at 13:33
MikeMike
1497
1497
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
No, that is not possible.
What you are seeing as a "line" in a document is based on the margin settings of the document and the text dynamically wraps to the next line based on available space. There is not a character in the text line that is forcing the wrap, thus there is nothing that can be searched and found.
Regarding line breaks, MS-Word only allows wildcard searches for words followed by a paragraph character or line feed character.
While I technically agree with you (and you are right), if someone was inclined to try this using the document setup as it appears on their screen, they can do this via the end key and move left methods.
– BlueGI
Jan 4 at 16:59
add a comment |
I agree with @rich that this is not technically possible as it depends on the document settings for margins and font sizes, etc., and will be different between computers.
However, if that does not matter to you, you can try to work something out using a macro.
Note that you would have to examine each line (not covered here) until the end of the document.
And also be wary of highlighting only punctuation and repeating steps for a single line if needed.
Selection.HomeKey Unit:=wdStory
Selection.EndKey Unit:=wdLine
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Copy
' here check for word - make sure to remove punctuation as needed
' continue to next line and repeat
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.EndKey Unit:=wdLine
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Copy
' here check for word - make sure to remove punctuation as needed
' you will have to MoveLeft again if you did select punctuation
I tried to create a macro and did record, and it copies the text above to the NewMacros code page, but when clicking on the button I get an error" the macro cannot run", and in Microsoft Visual Basic I get an error "Compile error". Can you tell me what is the right way to add it?
– Mike
Jan 5 at 6:11
My guess is you have a bad call or syntax somewhere. Try stepping through the code via F8 and it should crap out on the offending line and give you a better idea. Otherwise, edit your original question and post your code.
– BlueGI
Jan 7 at 16:47
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%2f1390519%2fword-2010-find-a-single-word-at-the-end-of-the-line%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
No, that is not possible.
What you are seeing as a "line" in a document is based on the margin settings of the document and the text dynamically wraps to the next line based on available space. There is not a character in the text line that is forcing the wrap, thus there is nothing that can be searched and found.
Regarding line breaks, MS-Word only allows wildcard searches for words followed by a paragraph character or line feed character.
While I technically agree with you (and you are right), if someone was inclined to try this using the document setup as it appears on their screen, they can do this via the end key and move left methods.
– BlueGI
Jan 4 at 16:59
add a comment |
No, that is not possible.
What you are seeing as a "line" in a document is based on the margin settings of the document and the text dynamically wraps to the next line based on available space. There is not a character in the text line that is forcing the wrap, thus there is nothing that can be searched and found.
Regarding line breaks, MS-Word only allows wildcard searches for words followed by a paragraph character or line feed character.
While I technically agree with you (and you are right), if someone was inclined to try this using the document setup as it appears on their screen, they can do this via the end key and move left methods.
– BlueGI
Jan 4 at 16:59
add a comment |
No, that is not possible.
What you are seeing as a "line" in a document is based on the margin settings of the document and the text dynamically wraps to the next line based on available space. There is not a character in the text line that is forcing the wrap, thus there is nothing that can be searched and found.
Regarding line breaks, MS-Word only allows wildcard searches for words followed by a paragraph character or line feed character.
No, that is not possible.
What you are seeing as a "line" in a document is based on the margin settings of the document and the text dynamically wraps to the next line based on available space. There is not a character in the text line that is forcing the wrap, thus there is nothing that can be searched and found.
Regarding line breaks, MS-Word only allows wildcard searches for words followed by a paragraph character or line feed character.
answered Jan 4 at 14:47
Rich MichaelsRich Michaels
1,1162210
1,1162210
While I technically agree with you (and you are right), if someone was inclined to try this using the document setup as it appears on their screen, they can do this via the end key and move left methods.
– BlueGI
Jan 4 at 16:59
add a comment |
While I technically agree with you (and you are right), if someone was inclined to try this using the document setup as it appears on their screen, they can do this via the end key and move left methods.
– BlueGI
Jan 4 at 16:59
While I technically agree with you (and you are right), if someone was inclined to try this using the document setup as it appears on their screen, they can do this via the end key and move left methods.
– BlueGI
Jan 4 at 16:59
While I technically agree with you (and you are right), if someone was inclined to try this using the document setup as it appears on their screen, they can do this via the end key and move left methods.
– BlueGI
Jan 4 at 16:59
add a comment |
I agree with @rich that this is not technically possible as it depends on the document settings for margins and font sizes, etc., and will be different between computers.
However, if that does not matter to you, you can try to work something out using a macro.
Note that you would have to examine each line (not covered here) until the end of the document.
And also be wary of highlighting only punctuation and repeating steps for a single line if needed.
Selection.HomeKey Unit:=wdStory
Selection.EndKey Unit:=wdLine
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Copy
' here check for word - make sure to remove punctuation as needed
' continue to next line and repeat
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.EndKey Unit:=wdLine
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Copy
' here check for word - make sure to remove punctuation as needed
' you will have to MoveLeft again if you did select punctuation
I tried to create a macro and did record, and it copies the text above to the NewMacros code page, but when clicking on the button I get an error" the macro cannot run", and in Microsoft Visual Basic I get an error "Compile error". Can you tell me what is the right way to add it?
– Mike
Jan 5 at 6:11
My guess is you have a bad call or syntax somewhere. Try stepping through the code via F8 and it should crap out on the offending line and give you a better idea. Otherwise, edit your original question and post your code.
– BlueGI
Jan 7 at 16:47
add a comment |
I agree with @rich that this is not technically possible as it depends on the document settings for margins and font sizes, etc., and will be different between computers.
However, if that does not matter to you, you can try to work something out using a macro.
Note that you would have to examine each line (not covered here) until the end of the document.
And also be wary of highlighting only punctuation and repeating steps for a single line if needed.
Selection.HomeKey Unit:=wdStory
Selection.EndKey Unit:=wdLine
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Copy
' here check for word - make sure to remove punctuation as needed
' continue to next line and repeat
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.EndKey Unit:=wdLine
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Copy
' here check for word - make sure to remove punctuation as needed
' you will have to MoveLeft again if you did select punctuation
I tried to create a macro and did record, and it copies the text above to the NewMacros code page, but when clicking on the button I get an error" the macro cannot run", and in Microsoft Visual Basic I get an error "Compile error". Can you tell me what is the right way to add it?
– Mike
Jan 5 at 6:11
My guess is you have a bad call or syntax somewhere. Try stepping through the code via F8 and it should crap out on the offending line and give you a better idea. Otherwise, edit your original question and post your code.
– BlueGI
Jan 7 at 16:47
add a comment |
I agree with @rich that this is not technically possible as it depends on the document settings for margins and font sizes, etc., and will be different between computers.
However, if that does not matter to you, you can try to work something out using a macro.
Note that you would have to examine each line (not covered here) until the end of the document.
And also be wary of highlighting only punctuation and repeating steps for a single line if needed.
Selection.HomeKey Unit:=wdStory
Selection.EndKey Unit:=wdLine
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Copy
' here check for word - make sure to remove punctuation as needed
' continue to next line and repeat
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.EndKey Unit:=wdLine
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Copy
' here check for word - make sure to remove punctuation as needed
' you will have to MoveLeft again if you did select punctuation
I agree with @rich that this is not technically possible as it depends on the document settings for margins and font sizes, etc., and will be different between computers.
However, if that does not matter to you, you can try to work something out using a macro.
Note that you would have to examine each line (not covered here) until the end of the document.
And also be wary of highlighting only punctuation and repeating steps for a single line if needed.
Selection.HomeKey Unit:=wdStory
Selection.EndKey Unit:=wdLine
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Copy
' here check for word - make sure to remove punctuation as needed
' continue to next line and repeat
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.EndKey Unit:=wdLine
Selection.MoveLeft Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Copy
' here check for word - make sure to remove punctuation as needed
' you will have to MoveLeft again if you did select punctuation
answered Jan 4 at 17:00
BlueGIBlueGI
1812
1812
I tried to create a macro and did record, and it copies the text above to the NewMacros code page, but when clicking on the button I get an error" the macro cannot run", and in Microsoft Visual Basic I get an error "Compile error". Can you tell me what is the right way to add it?
– Mike
Jan 5 at 6:11
My guess is you have a bad call or syntax somewhere. Try stepping through the code via F8 and it should crap out on the offending line and give you a better idea. Otherwise, edit your original question and post your code.
– BlueGI
Jan 7 at 16:47
add a comment |
I tried to create a macro and did record, and it copies the text above to the NewMacros code page, but when clicking on the button I get an error" the macro cannot run", and in Microsoft Visual Basic I get an error "Compile error". Can you tell me what is the right way to add it?
– Mike
Jan 5 at 6:11
My guess is you have a bad call or syntax somewhere. Try stepping through the code via F8 and it should crap out on the offending line and give you a better idea. Otherwise, edit your original question and post your code.
– BlueGI
Jan 7 at 16:47
I tried to create a macro and did record, and it copies the text above to the NewMacros code page, but when clicking on the button I get an error" the macro cannot run", and in Microsoft Visual Basic I get an error "Compile error". Can you tell me what is the right way to add it?
– Mike
Jan 5 at 6:11
I tried to create a macro and did record, and it copies the text above to the NewMacros code page, but when clicking on the button I get an error" the macro cannot run", and in Microsoft Visual Basic I get an error "Compile error". Can you tell me what is the right way to add it?
– Mike
Jan 5 at 6:11
My guess is you have a bad call or syntax somewhere. Try stepping through the code via F8 and it should crap out on the offending line and give you a better idea. Otherwise, edit your original question and post your code.
– BlueGI
Jan 7 at 16:47
My guess is you have a bad call or syntax somewhere. Try stepping through the code via F8 and it should crap out on the offending line and give you a better idea. Otherwise, edit your original question and post your code.
– BlueGI
Jan 7 at 16:47
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%2f1390519%2fword-2010-find-a-single-word-at-the-end-of-the-line%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