Sub test1() Shell "C:\Windows\system32\cmd.exe", vbNormalFocus 'opens CMD
Application.Wait (Now + TimeValue("0:00:5")) SendKeys Sheets(1).Cells(1, 1).Value Application.Wait (Now + TimeValue("0:00:5")) SendKeys "{Enter}" 'enter code End Sub On Tue, Apr 5, 2011 at 4:40 AM, Squall <squall.l...@gmail.com> wrote: > Hi guys, > > Please help if you give me example and solution for this... > > I need code example to actively extract text (selectively) from my core > business applications, and the same time can also send keys to the core > apps. > This function available in AS/400-Iseries, but my current company does not > use that, therefore not possible to do the same way. > > Let's take cmd.exe as example, also herewith I attached the excel files. > Many thanks for your dedicated time and helps ;) > > ~Aduh~ > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/discussexcel > -- *Regards* * * *Ashish Koul* *akoul*.*blogspot*.com <http://akoul.blogspot.com/> *akoul*.wordpress.com <http://akoul.wordpress.com/> My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830> P Before printing, think about the environment. -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel