Solved

Sending "special characters" to text files in VB

Posted on 1998-08-23
1
123 Views
Last Modified: 2010-04-30
I have a VB program that creates text files for use on other programs. Is there any way that I can insert "page breaks" so that when I open the file in MS Word it recognizes these breaks (not all pages have the same length or format so I need to specify the breaks). Thanks
Bryan Benoit
0
Comment
Question by:bjbenoit
1 Comment
 
LVL 3

Accepted Solution

by:
kfrick earned 50 total points
ID: 1430494
Are you using "PRINT #" statements to create your text file? Try sending :
   PRINT #1, CHR$(12);

CHR$(12) is the standard FF.

-kf
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to open Waze.com/livemap from address saved in DB? 26 206
Problem to skip loop 6 62
VB6 - Compare and highlight cell not the same 3 53
vbModal 12 57
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

791 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