Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default The dreaded Sendkeys command

Hi,

I have a very repetitive task I have to do sometime next week that
entails entering data into a form created by foxpro. Unfortunately, the
designer of the form did not design the form well, and is no longer with
the company, so the tab-order is incredibly out of whack and doesn't
seem to make any sense. Nevertheless, I am trying to automate the data
entry using Excel, but I have one problem. When I use the following
procedu

Sub CheckIt()
AppActivate ("Microsoft Visual FoxPro")
SendKeys "{TAB}", True
End Sub

everything works great, but when I use the following:

Sub CheckIt()
AppActivate ("Microsoft Visual FoxPro")
SendKeys "+{TAB}", True
End Sub

Absolutely nothing happens. I can't seem to tab backwards, though
tabbing forwards isn't a problem. Any ideas on how to get this to work
better? If I can figure this little thing out, I can save myself a
couple of days of work.

Thanks in advance,

David Morton

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default The dreaded Sendkeys command

Hi

I don't have foxpro to try it, but this worked for me in excel. I selected a
cell on the sheet so I could see what was happening. You may have to make
sure that the foxpro app is ready where it needs to be so that shift tab
moves to where you expect it.

Worksheets("sheet1").Range("c5").Select
SendKeys "+({tab})"

You may have to play with it a bit, but you could try just

SendKeys "+({tab})"


HTH

Ken



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.789 / Virus Database: 534 - Release Date: 07/11/2004


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If Function and the dreaded #VALUE Nick Wakeham Excel Worksheet Functions 4 June 3rd 08 09:05 PM
HELP with dreaded formulas... Brian Excel Worksheet Functions 5 April 1st 06 09:53 PM
Avoiding the dreaded #div/0 error Marie1uk Excel Worksheet Functions 10 July 21st 05 10:49 PM
Sendkeys VBA and command line Bobsa Excel Programming 1 April 15th 04 10:12 AM
SendKeys command not focusing on the correct open program mjwillyone[_12_] Excel Programming 0 December 30th 03 04:06 AM


All times are GMT +1. The time now is 02:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"