Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / August 2005

Tip: Looking for answers? Try searching our database.

open notepad and paste text without saving to file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jesper - 09 Aug 2005 00:33 GMT
I know I can export data to a text file.
Is it also possible to open up notepad and paste a chunk of text into it?

Jesper
Douglas J. Steele - 09 Aug 2005 00:48 GMT
Not reliably. Notepad doesn't support automation. While you might be able to
cobble together code that automates keystrokes, if the user clicks anywhere
while the code is running, it won't work properly.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>I know I can export data to a text file.
> Is it also possible to open up notepad and paste a chunk of text into it?
>
> Jesper
Jesper - 09 Aug 2005 18:54 GMT
> Not reliably. Notepad doesn't support automation. While you might be able
> to cobble together code that automates keystrokes, if the user clicks
> anywhere while the code is running, it won't work properly.

Thanks both of you.
John Nurick - 09 Aug 2005 07:57 GMT
You can export to a text file and then use something like

    lngRetVal = Shell("notepad.exe """ & strFileSpec & """")

to open it in Notepad.

>I know I can export data to a text file.
>Is it also possible to open up notepad and paste a chunk of text into it?
>
>Jesper

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.