How to embed or link a text file in Excel?












1















I have a text file containing a memory dump from an embedded system, which I update after every run (the file is formatted in the Motorola SREC format, but this is not too important). I am using Excel to parse the file to meaningful values and verify the results.



Currently, I open the file in a text editor, select all, copy, then paste into a specified area in the spreadsheet. The formulas in the spreadsheet take care of the rest.



I want to skip the stage of the text editor. What I would like to have is a way to embed (or, more correctly, link) the file contents in the specified cell(s), and let Excel update the fields automatically when the dump file changes (or, at least, update upon a key-press).



Is there a way to do that?



Note: I know it can also be done with Data/Get External Data/From File, but this is not an automatic process either.










share|improve this question



























    1















    I have a text file containing a memory dump from an embedded system, which I update after every run (the file is formatted in the Motorola SREC format, but this is not too important). I am using Excel to parse the file to meaningful values and verify the results.



    Currently, I open the file in a text editor, select all, copy, then paste into a specified area in the spreadsheet. The formulas in the spreadsheet take care of the rest.



    I want to skip the stage of the text editor. What I would like to have is a way to embed (or, more correctly, link) the file contents in the specified cell(s), and let Excel update the fields automatically when the dump file changes (or, at least, update upon a key-press).



    Is there a way to do that?



    Note: I know it can also be done with Data/Get External Data/From File, but this is not an automatic process either.










    share|improve this question

























      1












      1








      1








      I have a text file containing a memory dump from an embedded system, which I update after every run (the file is formatted in the Motorola SREC format, but this is not too important). I am using Excel to parse the file to meaningful values and verify the results.



      Currently, I open the file in a text editor, select all, copy, then paste into a specified area in the spreadsheet. The formulas in the spreadsheet take care of the rest.



      I want to skip the stage of the text editor. What I would like to have is a way to embed (or, more correctly, link) the file contents in the specified cell(s), and let Excel update the fields automatically when the dump file changes (or, at least, update upon a key-press).



      Is there a way to do that?



      Note: I know it can also be done with Data/Get External Data/From File, but this is not an automatic process either.










      share|improve this question














      I have a text file containing a memory dump from an embedded system, which I update after every run (the file is formatted in the Motorola SREC format, but this is not too important). I am using Excel to parse the file to meaningful values and verify the results.



      Currently, I open the file in a text editor, select all, copy, then paste into a specified area in the spreadsheet. The formulas in the spreadsheet take care of the rest.



      I want to skip the stage of the text editor. What I would like to have is a way to embed (or, more correctly, link) the file contents in the specified cell(s), and let Excel update the fields automatically when the dump file changes (or, at least, update upon a key-press).



      Is there a way to do that?



      Note: I know it can also be done with Data/Get External Data/From File, but this is not an automatic process either.







      microsoft-excel microsoft-excel-2010 links embedding ole






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 20 '14 at 19:38









      ysapysap

      1,186123058




      1,186123058






















          2 Answers
          2






          active

          oldest

          votes


















          2














          After some further Googling with a more exact search phrase, I found this link which points to the answer.




          1. Select the cell where the first line of text from the file should be.


          2. Use the Data/Get External Data/From File dialog to select the text file to import.


          3. Format the imported text as required.


          4. In the Import Data dialog that opens, click on Properties...


          5. Uncheck the Prompt for file name on refresh box.


          6. Whenever the external file changes, click the Data/Get External Data/Refresh All button.







          share|improve this answer
























          • not as versatile as a Macro, but definitely a lot easier to implement

            – TheUser1024
            Mar 20 '14 at 20:27



















          1














          Yes, bind a VBA Macro to a button for example and make it import your files content into the area you need it in. Maybe you can hardcode the filename in your case instead of popping up a fileOpen Dialogue. To trigger it on a file change might be more difficult. You also have the option to do all kinds of stuff to it first that way if you needed to.



          Here is the importing (and important) part:
          https://stackoverflow.com/questions/11267459/vba-importing-text-file-into-excel-sheet






          share|improve this answer


























          • Thanks. please see my self answer. I think it is a much simpler solution.

            – ysap
            Mar 20 '14 at 20:23











          • Yes, see my comment to your self answer ;-)

            – TheUser1024
            Mar 20 '14 at 20:28











          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%2f731525%2fhow-to-embed-or-link-a-text-file-in-excel%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









          2














          After some further Googling with a more exact search phrase, I found this link which points to the answer.




          1. Select the cell where the first line of text from the file should be.


          2. Use the Data/Get External Data/From File dialog to select the text file to import.


          3. Format the imported text as required.


          4. In the Import Data dialog that opens, click on Properties...


          5. Uncheck the Prompt for file name on refresh box.


          6. Whenever the external file changes, click the Data/Get External Data/Refresh All button.







          share|improve this answer
























          • not as versatile as a Macro, but definitely a lot easier to implement

            – TheUser1024
            Mar 20 '14 at 20:27
















          2














          After some further Googling with a more exact search phrase, I found this link which points to the answer.




          1. Select the cell where the first line of text from the file should be.


          2. Use the Data/Get External Data/From File dialog to select the text file to import.


          3. Format the imported text as required.


          4. In the Import Data dialog that opens, click on Properties...


          5. Uncheck the Prompt for file name on refresh box.


          6. Whenever the external file changes, click the Data/Get External Data/Refresh All button.







          share|improve this answer
























          • not as versatile as a Macro, but definitely a lot easier to implement

            – TheUser1024
            Mar 20 '14 at 20:27














          2












          2








          2







          After some further Googling with a more exact search phrase, I found this link which points to the answer.




          1. Select the cell where the first line of text from the file should be.


          2. Use the Data/Get External Data/From File dialog to select the text file to import.


          3. Format the imported text as required.


          4. In the Import Data dialog that opens, click on Properties...


          5. Uncheck the Prompt for file name on refresh box.


          6. Whenever the external file changes, click the Data/Get External Data/Refresh All button.







          share|improve this answer













          After some further Googling with a more exact search phrase, I found this link which points to the answer.




          1. Select the cell where the first line of text from the file should be.


          2. Use the Data/Get External Data/From File dialog to select the text file to import.


          3. Format the imported text as required.


          4. In the Import Data dialog that opens, click on Properties...


          5. Uncheck the Prompt for file name on refresh box.


          6. Whenever the external file changes, click the Data/Get External Data/Refresh All button.








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 20 '14 at 20:20









          ysapysap

          1,186123058




          1,186123058













          • not as versatile as a Macro, but definitely a lot easier to implement

            – TheUser1024
            Mar 20 '14 at 20:27



















          • not as versatile as a Macro, but definitely a lot easier to implement

            – TheUser1024
            Mar 20 '14 at 20:27

















          not as versatile as a Macro, but definitely a lot easier to implement

          – TheUser1024
          Mar 20 '14 at 20:27





          not as versatile as a Macro, but definitely a lot easier to implement

          – TheUser1024
          Mar 20 '14 at 20:27













          1














          Yes, bind a VBA Macro to a button for example and make it import your files content into the area you need it in. Maybe you can hardcode the filename in your case instead of popping up a fileOpen Dialogue. To trigger it on a file change might be more difficult. You also have the option to do all kinds of stuff to it first that way if you needed to.



          Here is the importing (and important) part:
          https://stackoverflow.com/questions/11267459/vba-importing-text-file-into-excel-sheet






          share|improve this answer


























          • Thanks. please see my self answer. I think it is a much simpler solution.

            – ysap
            Mar 20 '14 at 20:23











          • Yes, see my comment to your self answer ;-)

            – TheUser1024
            Mar 20 '14 at 20:28
















          1














          Yes, bind a VBA Macro to a button for example and make it import your files content into the area you need it in. Maybe you can hardcode the filename in your case instead of popping up a fileOpen Dialogue. To trigger it on a file change might be more difficult. You also have the option to do all kinds of stuff to it first that way if you needed to.



          Here is the importing (and important) part:
          https://stackoverflow.com/questions/11267459/vba-importing-text-file-into-excel-sheet






          share|improve this answer


























          • Thanks. please see my self answer. I think it is a much simpler solution.

            – ysap
            Mar 20 '14 at 20:23











          • Yes, see my comment to your self answer ;-)

            – TheUser1024
            Mar 20 '14 at 20:28














          1












          1








          1







          Yes, bind a VBA Macro to a button for example and make it import your files content into the area you need it in. Maybe you can hardcode the filename in your case instead of popping up a fileOpen Dialogue. To trigger it on a file change might be more difficult. You also have the option to do all kinds of stuff to it first that way if you needed to.



          Here is the importing (and important) part:
          https://stackoverflow.com/questions/11267459/vba-importing-text-file-into-excel-sheet






          share|improve this answer















          Yes, bind a VBA Macro to a button for example and make it import your files content into the area you need it in. Maybe you can hardcode the filename in your case instead of popping up a fileOpen Dialogue. To trigger it on a file change might be more difficult. You also have the option to do all kinds of stuff to it first that way if you needed to.



          Here is the importing (and important) part:
          https://stackoverflow.com/questions/11267459/vba-importing-text-file-into-excel-sheet







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 23 '17 at 12:41









          Community

          1




          1










          answered Mar 20 '14 at 20:20









          TheUser1024TheUser1024

          2,72511316




          2,72511316













          • Thanks. please see my self answer. I think it is a much simpler solution.

            – ysap
            Mar 20 '14 at 20:23











          • Yes, see my comment to your self answer ;-)

            – TheUser1024
            Mar 20 '14 at 20:28



















          • Thanks. please see my self answer. I think it is a much simpler solution.

            – ysap
            Mar 20 '14 at 20:23











          • Yes, see my comment to your self answer ;-)

            – TheUser1024
            Mar 20 '14 at 20:28

















          Thanks. please see my self answer. I think it is a much simpler solution.

          – ysap
          Mar 20 '14 at 20:23





          Thanks. please see my self answer. I think it is a much simpler solution.

          – ysap
          Mar 20 '14 at 20:23













          Yes, see my comment to your self answer ;-)

          – TheUser1024
          Mar 20 '14 at 20:28





          Yes, see my comment to your self answer ;-)

          – TheUser1024
          Mar 20 '14 at 20:28


















          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%2f731525%2fhow-to-embed-or-link-a-text-file-in-excel%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

          Сан-Квентин

          Алькесар

          Josef Freinademetz