sending text directly to LPT1

uemt08k

New Member
Joined
Mar 20, 2005
Messages
12
What is the comand to send text directly to LTP1 without using a report or form??
 

Some videos you may like

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

uemt08k

New Member
Joined
Mar 20, 2005
Messages
12
'Open the port

Open "LPT1" For Output As #1

'Once opened, you can print directly to it
Print #1, "Your text"

'then, you have to close the port:

Close #1
Found it myself but I will post for others.
 

Watch MrExcel Video

Forum statistics

Threads
1,113,857
Messages
5,544,694
Members
410,630
Latest member
Maggie28
Top