How to embed or link a text file in Excel?
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
add a comment |
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
add a comment |
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
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
microsoft-excel microsoft-excel-2010 links embedding ole
asked Mar 20 '14 at 19:38
ysapysap
1,186123058
1,186123058
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
After some further Googling with a more exact search phrase, I found this link which points to the answer.
Select the cell where the first line of text from the file should be.
Use the
Data
/Get External Data
/From File
dialog to select the text file to import.Format the imported text as required.
In the
Import Data
dialog that opens, click onProperties...
Uncheck the
Prompt for file name on refresh
box.Whenever the external file changes, click the
Data
/Get External Data
/Refresh All
button.
not as versatile as a Macro, but definitely a lot easier to implement
– TheUser1024
Mar 20 '14 at 20:27
add a comment |
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
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
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%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
After some further Googling with a more exact search phrase, I found this link which points to the answer.
Select the cell where the first line of text from the file should be.
Use the
Data
/Get External Data
/From File
dialog to select the text file to import.Format the imported text as required.
In the
Import Data
dialog that opens, click onProperties...
Uncheck the
Prompt for file name on refresh
box.Whenever the external file changes, click the
Data
/Get External Data
/Refresh All
button.
not as versatile as a Macro, but definitely a lot easier to implement
– TheUser1024
Mar 20 '14 at 20:27
add a comment |
After some further Googling with a more exact search phrase, I found this link which points to the answer.
Select the cell where the first line of text from the file should be.
Use the
Data
/Get External Data
/From File
dialog to select the text file to import.Format the imported text as required.
In the
Import Data
dialog that opens, click onProperties...
Uncheck the
Prompt for file name on refresh
box.Whenever the external file changes, click the
Data
/Get External Data
/Refresh All
button.
not as versatile as a Macro, but definitely a lot easier to implement
– TheUser1024
Mar 20 '14 at 20:27
add a comment |
After some further Googling with a more exact search phrase, I found this link which points to the answer.
Select the cell where the first line of text from the file should be.
Use the
Data
/Get External Data
/From File
dialog to select the text file to import.Format the imported text as required.
In the
Import Data
dialog that opens, click onProperties...
Uncheck the
Prompt for file name on refresh
box.Whenever the external file changes, click the
Data
/Get External Data
/Refresh All
button.
After some further Googling with a more exact search phrase, I found this link which points to the answer.
Select the cell where the first line of text from the file should be.
Use the
Data
/Get External Data
/From File
dialog to select the text file to import.Format the imported text as required.
In the
Import Data
dialog that opens, click onProperties...
Uncheck the
Prompt for file name on refresh
box.Whenever the external file changes, click the
Data
/Get External Data
/Refresh All
button.
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
add a comment |
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
add a comment |
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
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%2f731525%2fhow-to-embed-or-link-a-text-file-in-excel%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