Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative to using .SetSelection
#6
Solved: 11 Years, 3 Months, 3 Weeks ago
an alternative of SetSelection could be using 'SendKeys'
try this
Code:
'Set Focus on edit box
VbWindow(" ").VbEdit(" ").Click
'Create Wscript.shell object
Set WshShell = CreateObject("WScript.Shell")
'Select the text already there in edit box sending
WshShell.SendKeys "+{HOME}"
'set the rrequired text in edit box using either of these two statements
WshShell.SendKeys "Your Text"
'Or
'VbWindow(" ").VbEdit(" ").Set "Your Text"

Reply


Messages In This Thread
Alternative to using .SetSelection - by janriis - 11-23-2009, 03:18 PM
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: 1 Guest(s)