Solved

VBA, New Line in Notepad

Posted on 2011-03-22
3
1,123 Views
Last Modified: 2012-05-11
Hi

When exporting a string to a .txt file Using chr(13) or VbCr does not work. It displays a litle square instead of new line.

Any ideas?
0
Comment
Question by:New_Alex
3 Comments
 
LVL 33

Accepted Solution

by:
it_saige earned 500 total points
ID: 35189807
Have you tried using:

VbCrLf, Chr(13) + Chr(10)

or

VbNewLine, Chr(13) + Chr(10) + Chr(13)

-saige-
0
 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 35190298
windows uses cr ascii 13 + lf ascii 10
unix uses just lf ascii 10

maybe this page will be of assistance
0
 
LVL 1

Author Comment

by:New_Alex
ID: 35196147
VbCrLf made the trick, THANKS
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

With the internet and the ease of information transference, many professional jobs can be done anywhere today.  Why should it make a difference whether an x-ray is read in India or the United States as long as the radiologist is qualified?   Outso…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now