Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a Notepad as a message 1

Status
Not open for further replies.

seaport

MIS
Jan 5, 2000
923
US
What I want to do is to open a notepad on the fly and dump some messages into the notepad. That notepad will not saved unless the user intends to do so. The user can print the message or close the notepad after viewing it.

The bottom line is to create a simple way to output non-relational data (data not in a table). I can accomplish the same job with an Access report, or using Word Automation. But it is kind of complicated.

Thanks in advance.

Seaport
 
You can Shell Notepad and use SendKeys to write data.

[tt]Private Sub cmdTextpad_Click()
RetVal = Shell("Notepad.EXE", 1)
AppActivate RetVal
SendKeys "%(FX)", True
End Sub[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top