Why do Excel line breaks not transfer into Notepad?
up vote
3
down vote
favorite
When copying a cell with line breaks in Excel and pasting it into Notepad, the text is pasted onto one line. Why is that?
microsoft-excel notepad linebreaks
New contributor
add a comment |
up vote
3
down vote
favorite
When copying a cell with line breaks in Excel and pasting it into Notepad, the text is pasted onto one line. Why is that?
microsoft-excel notepad linebreaks
New contributor
1
Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
– angelofdev
3 hours ago
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
When copying a cell with line breaks in Excel and pasting it into Notepad, the text is pasted onto one line. Why is that?
microsoft-excel notepad linebreaks
New contributor
When copying a cell with line breaks in Excel and pasting it into Notepad, the text is pasted onto one line. Why is that?
microsoft-excel notepad linebreaks
microsoft-excel notepad linebreaks
New contributor
New contributor
New contributor
asked 4 hours ago
Kyle Dixon
182
182
New contributor
New contributor
1
Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
– angelofdev
3 hours ago
add a comment |
1
Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
– angelofdev
3 hours ago
1
1
Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
– angelofdev
3 hours ago
Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
– angelofdev
3 hours ago
add a comment |
3 Answers
3
active
oldest
votes
up vote
5
down vote
accepted
Its due to the nature of how spreadsheets work. Imagine you have a spreadsheet full of data. If you were to copy an entire row of data, then paste it into Notepad, all of that data needs to be on one line. This is because if you were to copy another row of data and paste it, the next row of data needs to be on one line. If there were line breaks in the first row you copied, the data would no longer be in two linear rows. If you were to copy the data out of Notepad and back into the spreadsheet, it would not paste properly.
That makes complete sense, thank you!
– Kyle Dixon
3 hours ago
add a comment |
up vote
7
down vote
Keltari's answer gives the logical reasoning, while this answer focuses on the technical difference.
There are three different forms of line breaks in use in computing:
- Unix and macOS 10.0+ line endings use a line-feed character (
LF
) - Macintosh (prior to macOS 10.0) line endings use a carriage-return character (
CR
) - Windows line endings use a combination of carriage-return and line-feed characters (
CRLF
)
This is a hold over from the way that type writers work.
Excel uses a combination of these line breaks to represent cells with multiple lines:
- Cells are separated by the
Tab
character. - Rows are separated by the
CRLF
characters. - Multiline cells separate each line using just the
LF
character.
This becomes apparent when you save your workbook as a .txt
file and open it with a text editor that supports showing these characters.
Note: You will not see this when pasting back and forth, because Notepad++ automatically adjusts line endings for you, while regular Notepad does not.
1
Fantastic explanation thank you so much for this technical side.
– Kyle Dixon
3 hours ago
You should also mention that theLF
is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
– 3D1T0R
7 mins ago
add a comment |
up vote
6
down vote
This is indeed so when you use Notepad, i.e. Microcosoft's basic text editor delivered with Windows.
However, you can use a more advanced text editor such as PSPad or Notepad++ (both excellent, and free), and you get your line breaks transfered.
Excel:
Cell marked, then copy-paste into Notpad++:
Same content pasted into Notepad (Windows default editor):
Note that in both cases, quotation marks were added automatically!
The better editors give you also the option to display the control characters such as LineFeed (LF) and CarriageReturn (CR). In Notepad++ this looks like:
As a conclusion: choose your tool depending on your needs. If you need cell boundaries preserved in the editor, but cell contents may be altered a bit, use Notepad. If you need cell contents left untouched including line breaks, and 1:1-reproducibility of cell boundaries is not crucial, use another editor.
Mass processing of such data
If you need both cell borders and cell contents preserved 1:1 at the same time, you may run into problems.
There might be more intelligent solutions, but what I did in such cases was writing a little programme in any language (VBA, Python, or whatever you like most) that reads the contents and adds placeholder strings for the line breaks (something as simple as "###Linebreak###", which can later be re-replaced by CR and LF control characters. Of course, this is fiddly work then and makes sense only if you have to process large amounts of data.
You may run into problems also with the quotation marks that are added. These may at first glance be useful to preserve cell boundaries even when line breaks are included. However, your cell may have quotation marks a part of the original content, and then you get new problems. There are various solutions to this, then, but it needs your attention.
This is great thank you so much!
– Kyle Dixon
3 hours ago
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
});
}
});
Kyle Dixon is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1385708%2fwhy-do-excel-line-breaks-not-transfer-into-notepad%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
Its due to the nature of how spreadsheets work. Imagine you have a spreadsheet full of data. If you were to copy an entire row of data, then paste it into Notepad, all of that data needs to be on one line. This is because if you were to copy another row of data and paste it, the next row of data needs to be on one line. If there were line breaks in the first row you copied, the data would no longer be in two linear rows. If you were to copy the data out of Notepad and back into the spreadsheet, it would not paste properly.
That makes complete sense, thank you!
– Kyle Dixon
3 hours ago
add a comment |
up vote
5
down vote
accepted
Its due to the nature of how spreadsheets work. Imagine you have a spreadsheet full of data. If you were to copy an entire row of data, then paste it into Notepad, all of that data needs to be on one line. This is because if you were to copy another row of data and paste it, the next row of data needs to be on one line. If there were line breaks in the first row you copied, the data would no longer be in two linear rows. If you were to copy the data out of Notepad and back into the spreadsheet, it would not paste properly.
That makes complete sense, thank you!
– Kyle Dixon
3 hours ago
add a comment |
up vote
5
down vote
accepted
up vote
5
down vote
accepted
Its due to the nature of how spreadsheets work. Imagine you have a spreadsheet full of data. If you were to copy an entire row of data, then paste it into Notepad, all of that data needs to be on one line. This is because if you were to copy another row of data and paste it, the next row of data needs to be on one line. If there were line breaks in the first row you copied, the data would no longer be in two linear rows. If you were to copy the data out of Notepad and back into the spreadsheet, it would not paste properly.
Its due to the nature of how spreadsheets work. Imagine you have a spreadsheet full of data. If you were to copy an entire row of data, then paste it into Notepad, all of that data needs to be on one line. This is because if you were to copy another row of data and paste it, the next row of data needs to be on one line. If there were line breaks in the first row you copied, the data would no longer be in two linear rows. If you were to copy the data out of Notepad and back into the spreadsheet, it would not paste properly.
edited 4 hours ago
answered 4 hours ago
Keltari
50.4k18115168
50.4k18115168
That makes complete sense, thank you!
– Kyle Dixon
3 hours ago
add a comment |
That makes complete sense, thank you!
– Kyle Dixon
3 hours ago
That makes complete sense, thank you!
– Kyle Dixon
3 hours ago
That makes complete sense, thank you!
– Kyle Dixon
3 hours ago
add a comment |
up vote
7
down vote
Keltari's answer gives the logical reasoning, while this answer focuses on the technical difference.
There are three different forms of line breaks in use in computing:
- Unix and macOS 10.0+ line endings use a line-feed character (
LF
) - Macintosh (prior to macOS 10.0) line endings use a carriage-return character (
CR
) - Windows line endings use a combination of carriage-return and line-feed characters (
CRLF
)
This is a hold over from the way that type writers work.
Excel uses a combination of these line breaks to represent cells with multiple lines:
- Cells are separated by the
Tab
character. - Rows are separated by the
CRLF
characters. - Multiline cells separate each line using just the
LF
character.
This becomes apparent when you save your workbook as a .txt
file and open it with a text editor that supports showing these characters.
Note: You will not see this when pasting back and forth, because Notepad++ automatically adjusts line endings for you, while regular Notepad does not.
1
Fantastic explanation thank you so much for this technical side.
– Kyle Dixon
3 hours ago
You should also mention that theLF
is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
– 3D1T0R
7 mins ago
add a comment |
up vote
7
down vote
Keltari's answer gives the logical reasoning, while this answer focuses on the technical difference.
There are three different forms of line breaks in use in computing:
- Unix and macOS 10.0+ line endings use a line-feed character (
LF
) - Macintosh (prior to macOS 10.0) line endings use a carriage-return character (
CR
) - Windows line endings use a combination of carriage-return and line-feed characters (
CRLF
)
This is a hold over from the way that type writers work.
Excel uses a combination of these line breaks to represent cells with multiple lines:
- Cells are separated by the
Tab
character. - Rows are separated by the
CRLF
characters. - Multiline cells separate each line using just the
LF
character.
This becomes apparent when you save your workbook as a .txt
file and open it with a text editor that supports showing these characters.
Note: You will not see this when pasting back and forth, because Notepad++ automatically adjusts line endings for you, while regular Notepad does not.
1
Fantastic explanation thank you so much for this technical side.
– Kyle Dixon
3 hours ago
You should also mention that theLF
is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
– 3D1T0R
7 mins ago
add a comment |
up vote
7
down vote
up vote
7
down vote
Keltari's answer gives the logical reasoning, while this answer focuses on the technical difference.
There are three different forms of line breaks in use in computing:
- Unix and macOS 10.0+ line endings use a line-feed character (
LF
) - Macintosh (prior to macOS 10.0) line endings use a carriage-return character (
CR
) - Windows line endings use a combination of carriage-return and line-feed characters (
CRLF
)
This is a hold over from the way that type writers work.
Excel uses a combination of these line breaks to represent cells with multiple lines:
- Cells are separated by the
Tab
character. - Rows are separated by the
CRLF
characters. - Multiline cells separate each line using just the
LF
character.
This becomes apparent when you save your workbook as a .txt
file and open it with a text editor that supports showing these characters.
Note: You will not see this when pasting back and forth, because Notepad++ automatically adjusts line endings for you, while regular Notepad does not.
Keltari's answer gives the logical reasoning, while this answer focuses on the technical difference.
There are three different forms of line breaks in use in computing:
- Unix and macOS 10.0+ line endings use a line-feed character (
LF
) - Macintosh (prior to macOS 10.0) line endings use a carriage-return character (
CR
) - Windows line endings use a combination of carriage-return and line-feed characters (
CRLF
)
This is a hold over from the way that type writers work.
Excel uses a combination of these line breaks to represent cells with multiple lines:
- Cells are separated by the
Tab
character. - Rows are separated by the
CRLF
characters. - Multiline cells separate each line using just the
LF
character.
This becomes apparent when you save your workbook as a .txt
file and open it with a text editor that supports showing these characters.
Note: You will not see this when pasting back and forth, because Notepad++ automatically adjusts line endings for you, while regular Notepad does not.
edited 2 hours ago
answered 3 hours ago
Worthwelle
2,3693924
2,3693924
1
Fantastic explanation thank you so much for this technical side.
– Kyle Dixon
3 hours ago
You should also mention that theLF
is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
– 3D1T0R
7 mins ago
add a comment |
1
Fantastic explanation thank you so much for this technical side.
– Kyle Dixon
3 hours ago
You should also mention that theLF
is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).
– 3D1T0R
7 mins ago
1
1
Fantastic explanation thank you so much for this technical side.
– Kyle Dixon
3 hours ago
Fantastic explanation thank you so much for this technical side.
– Kyle Dixon
3 hours ago
You should also mention that the
LF
is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).– 3D1T0R
7 mins ago
You should also mention that the
LF
is actually still present when pasted in notepad, notepad simply doesn't display it visibly. (It renders effectively the same as a zero width space.) Hence why copying the pasted data back out of notepad into Excel includes these line breaks (although Excel doesn't automatically resize rows to them).– 3D1T0R
7 mins ago
add a comment |
up vote
6
down vote
This is indeed so when you use Notepad, i.e. Microcosoft's basic text editor delivered with Windows.
However, you can use a more advanced text editor such as PSPad or Notepad++ (both excellent, and free), and you get your line breaks transfered.
Excel:
Cell marked, then copy-paste into Notpad++:
Same content pasted into Notepad (Windows default editor):
Note that in both cases, quotation marks were added automatically!
The better editors give you also the option to display the control characters such as LineFeed (LF) and CarriageReturn (CR). In Notepad++ this looks like:
As a conclusion: choose your tool depending on your needs. If you need cell boundaries preserved in the editor, but cell contents may be altered a bit, use Notepad. If you need cell contents left untouched including line breaks, and 1:1-reproducibility of cell boundaries is not crucial, use another editor.
Mass processing of such data
If you need both cell borders and cell contents preserved 1:1 at the same time, you may run into problems.
There might be more intelligent solutions, but what I did in such cases was writing a little programme in any language (VBA, Python, or whatever you like most) that reads the contents and adds placeholder strings for the line breaks (something as simple as "###Linebreak###", which can later be re-replaced by CR and LF control characters. Of course, this is fiddly work then and makes sense only if you have to process large amounts of data.
You may run into problems also with the quotation marks that are added. These may at first glance be useful to preserve cell boundaries even when line breaks are included. However, your cell may have quotation marks a part of the original content, and then you get new problems. There are various solutions to this, then, but it needs your attention.
This is great thank you so much!
– Kyle Dixon
3 hours ago
add a comment |
up vote
6
down vote
This is indeed so when you use Notepad, i.e. Microcosoft's basic text editor delivered with Windows.
However, you can use a more advanced text editor such as PSPad or Notepad++ (both excellent, and free), and you get your line breaks transfered.
Excel:
Cell marked, then copy-paste into Notpad++:
Same content pasted into Notepad (Windows default editor):
Note that in both cases, quotation marks were added automatically!
The better editors give you also the option to display the control characters such as LineFeed (LF) and CarriageReturn (CR). In Notepad++ this looks like:
As a conclusion: choose your tool depending on your needs. If you need cell boundaries preserved in the editor, but cell contents may be altered a bit, use Notepad. If you need cell contents left untouched including line breaks, and 1:1-reproducibility of cell boundaries is not crucial, use another editor.
Mass processing of such data
If you need both cell borders and cell contents preserved 1:1 at the same time, you may run into problems.
There might be more intelligent solutions, but what I did in such cases was writing a little programme in any language (VBA, Python, or whatever you like most) that reads the contents and adds placeholder strings for the line breaks (something as simple as "###Linebreak###", which can later be re-replaced by CR and LF control characters. Of course, this is fiddly work then and makes sense only if you have to process large amounts of data.
You may run into problems also with the quotation marks that are added. These may at first glance be useful to preserve cell boundaries even when line breaks are included. However, your cell may have quotation marks a part of the original content, and then you get new problems. There are various solutions to this, then, but it needs your attention.
This is great thank you so much!
– Kyle Dixon
3 hours ago
add a comment |
up vote
6
down vote
up vote
6
down vote
This is indeed so when you use Notepad, i.e. Microcosoft's basic text editor delivered with Windows.
However, you can use a more advanced text editor such as PSPad or Notepad++ (both excellent, and free), and you get your line breaks transfered.
Excel:
Cell marked, then copy-paste into Notpad++:
Same content pasted into Notepad (Windows default editor):
Note that in both cases, quotation marks were added automatically!
The better editors give you also the option to display the control characters such as LineFeed (LF) and CarriageReturn (CR). In Notepad++ this looks like:
As a conclusion: choose your tool depending on your needs. If you need cell boundaries preserved in the editor, but cell contents may be altered a bit, use Notepad. If you need cell contents left untouched including line breaks, and 1:1-reproducibility of cell boundaries is not crucial, use another editor.
Mass processing of such data
If you need both cell borders and cell contents preserved 1:1 at the same time, you may run into problems.
There might be more intelligent solutions, but what I did in such cases was writing a little programme in any language (VBA, Python, or whatever you like most) that reads the contents and adds placeholder strings for the line breaks (something as simple as "###Linebreak###", which can later be re-replaced by CR and LF control characters. Of course, this is fiddly work then and makes sense only if you have to process large amounts of data.
You may run into problems also with the quotation marks that are added. These may at first glance be useful to preserve cell boundaries even when line breaks are included. However, your cell may have quotation marks a part of the original content, and then you get new problems. There are various solutions to this, then, but it needs your attention.
This is indeed so when you use Notepad, i.e. Microcosoft's basic text editor delivered with Windows.
However, you can use a more advanced text editor such as PSPad or Notepad++ (both excellent, and free), and you get your line breaks transfered.
Excel:
Cell marked, then copy-paste into Notpad++:
Same content pasted into Notepad (Windows default editor):
Note that in both cases, quotation marks were added automatically!
The better editors give you also the option to display the control characters such as LineFeed (LF) and CarriageReturn (CR). In Notepad++ this looks like:
As a conclusion: choose your tool depending on your needs. If you need cell boundaries preserved in the editor, but cell contents may be altered a bit, use Notepad. If you need cell contents left untouched including line breaks, and 1:1-reproducibility of cell boundaries is not crucial, use another editor.
Mass processing of such data
If you need both cell borders and cell contents preserved 1:1 at the same time, you may run into problems.
There might be more intelligent solutions, but what I did in such cases was writing a little programme in any language (VBA, Python, or whatever you like most) that reads the contents and adds placeholder strings for the line breaks (something as simple as "###Linebreak###", which can later be re-replaced by CR and LF control characters. Of course, this is fiddly work then and makes sense only if you have to process large amounts of data.
You may run into problems also with the quotation marks that are added. These may at first glance be useful to preserve cell boundaries even when line breaks are included. However, your cell may have quotation marks a part of the original content, and then you get new problems. There are various solutions to this, then, but it needs your attention.
edited 3 hours ago
answered 3 hours ago
Christian Geiselmann
246111
246111
This is great thank you so much!
– Kyle Dixon
3 hours ago
add a comment |
This is great thank you so much!
– Kyle Dixon
3 hours ago
This is great thank you so much!
– Kyle Dixon
3 hours ago
This is great thank you so much!
– Kyle Dixon
3 hours ago
add a comment |
Kyle Dixon is a new contributor. Be nice, and check out our Code of Conduct.
Kyle Dixon is a new contributor. Be nice, and check out our Code of Conduct.
Kyle Dixon is a new contributor. Be nice, and check out our Code of Conduct.
Kyle Dixon is a new contributor. Be nice, and check out our Code of Conduct.
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f1385708%2fwhy-do-excel-line-breaks-not-transfer-into-notepad%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
1
Hello welcome to superuser! Try to provide as much detail as possible so you can get a more detailed answer to your question. Head over to ask your own question page for handy tips to help you ask the best questions. I tested this with Excel 2013 and Notepad++ and that works fine, but I was able to replicate your described issue with the regular Notepad application that comes with Windows OS and that does not work.
– angelofdev
3 hours ago