Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative to using .SetSelection
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Did you try:
Code:
Vbedit("txtAge").Set "1"     <--- just to set focus to field
VbEdit("txtAge").Type micBack  <---backspace
Vbedit("txtAge").Set "40"   <----real value

You might also try using:
Code:
'use tab to get to the txtAge field
Vbedit("AnotherObject").Type micTab + micTab
Vbedit("txtAge").Type micBack
Vbedit("txtAge").Type "40"

Hope this works.
Reply


Messages In This Thread
Alternative to using .SetSelection - by janriis - 11-23-2009, 03:18 PM
RE: Alternative to using .SetSelection - by jsknight1969 - 11-24-2009, 01:01 AM
RE: Alternative to using .SetSelection - by Saket - 11-25-2009, 09:51 AM
RE: Alternative to using .SetSelection - by Saket - 12-09-2009, 11:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Alternative to Switch case- Multi Select with value match Aakansha_d 11 10,985 06-10-2008, 12:00 AM
Last Post: somisays

Forum Jump:


Users browsing this thread: 4 Guest(s)