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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to close notepad progaramtically

Status
Not open for further replies.

asemalrifai

IS-IT--Management
Nov 22, 2000
1
IT
I'm Designing a program where ole and data allow me to import packages from access database, and would like to know what is the programmation phrase allowing me to close a notepad imported and activated in the V.B
thanks
 
Don't know how to do the OLE stuff, don't even know what it means but I do know how to close notepad.
Use sendkeys to send alt F , to open the file menu, and then sendkeys to send x, for the close shortcut. Now I have no idea what you would do if notepad asks you if you want to save or not.

Code:
SendKeys ^"F"
SendKeys "x"

I think that is the correct syntax for sendkeys, I've had trouble using it, ,lol
DarkMercenary
darkmercenary44@earthlink.net

In the real world

As in dreams

Nothing is quite

What it seems

:Book of Counted Sorrows
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top