Word 2010: Find a single word at the end of the line












0















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.
enter image description here
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?










share|improve this question





























    0















    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.
    enter image description here
    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?










    share|improve this question



























      0












      0








      0








      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.
      enter image description here
      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?










      share|improve this question
















      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.
      enter image description here
      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 4 at 14:40









      Thor

      4,58312438




      4,58312438










      asked Jan 4 at 13:33









      MikeMike

      1497




      1497






















          2 Answers
          2






          active

          oldest

          votes


















          0














          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.






          share|improve this answer
























          • 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



















          0














          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





          share|improve this answer
























          • 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











          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          0














          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.






          share|improve this answer
























          • 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
















          0














          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.






          share|improve this answer
























          • 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














          0












          0








          0







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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



















          • 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













          0














          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





          share|improve this answer
























          • 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
















          0














          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





          share|improve this answer
























          • 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














          0












          0








          0







          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





          share|improve this answer













          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






          share|improve this answer












          share|improve this answer



          share|improve this answer










          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



















          • 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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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

          Aardman Animations

          Are they similar matrix

          “minimization” problem in Euclidean space related to orthonormal basis