I have attached a bit of the code, most of which is cribbed from these forums. However my problem is literally the moveto command doesnt move to the coords it should, it seems to be dependent on where abouts the cursor is on the screen when I run the code.
So when I run this code with the cursor at 4,9 it pastes "xxx" to 1 "x" at 18,78 and the other 2 "xx" at 20,15and 16
If I run from a different cursor position it will go somewhere else, as if i was using moverelevent. Even so there seems to be no real pattern.
Regards
Worz
Sub test()
Dim MyRange As Range
Dim xlSheet As Worksheet
Dim System As ExtraSystem
Dim Sess0 As ExtraSession
Dim oScrn As ExtraScreen
Dim examplextn As String
Set System = CreateObject("Extra.system")
g_HostSettleTime = 800
OldSystemTimeout& = System.TimeoutValue
If (g_HostSettleTime > OldSystemTimeout) Then
System.TimeoutValue = g_HostSettleTime
End If
If (System Is Nothing) Then
MsgBox "Could not Create Session"
Stop
End If
Set Sess0 = System.Activesession
Set oScrn = Sess0.Screen
Sess0.Screen.WaitHostQuiet (g_HostSettleTime)
Application.Visible = True
Application.DisplayAlerts = False 'Turn off Warning Messages
Set xlSheet = ActiveSheet
examplextn = xlSheet.Range("H1")
oScrn.MoveTo 13, 50
oScrn.PutString "XXX"
End Sub