Forum Discussion
tristaanogre
13 years agoEsteemed Contributor
I would do the following:
Sub EnterText (strWindowName, strControlName, strValue)Set objWin = Eval(strWindowName)
Set ControlObj = Eval(objWin & "." & strControlName)
Call ControlObj.SetText(strValue)
If Err.Number <> 0 Then
BuiltIn.ShowMessage("Data entered correctly")
Else
BuiltIn.ShowMessage("Error in forming the Control. Please try again")
End If
End sub
Related Content
- 2 months agoNicolaFilosa_SE
- 7 months agosohailalam2696
- 5 years agoAurore
Recent Discussions
- 4 hours agoMW_Didata