napadly mě dvě možnosti:
1. možnost (pomocí msgboxu)
Sub submitFeedback3()
Dim IE As Object
Public x As String
Dim retval As Integer
Application.ScreenUpdating = False
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "http://104.100.36.21/index.php"
Application.StatusBar = "Submitting"
' Wait while IE loading...
While IE.Busy
DoEvents
Wend
x = Cells(1, 1).Text
' **********************************************************************
'delay 5
retval = MsgBox("zmačkni enter pro pokračování", vbOKOnly)
IE.Document.getElementById("proc").Value = x
'**********************************************************************
Set IE = Nothing
Application.ScreenUpdating = True
End Sub
2. možnost (OnKey)
Dim x As String
Dim IE As Object
Sub submitFeedback4()
Application.ScreenUpdating = False
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "http://104.100.36.21/index.php"
Application.StatusBar = "Submitting"
' Wait while IE loading...
While IE.Busy
DoEvents
Wend
x = Cells(1, 1).Text
' **********************************************************************
'delay 5
Application.OnKey "{ENTER}", "Vypln"
Application.OnKey "~", "Vypln"
Application.OnKey "{ESCAPE}", "ResetTlac"
Exit Sub
' **********************************************************************
End Sub
Sub Vypln()
Call ResetTlac
IE.Document.getElementById("proc").Value = x
Set IE = Nothing
Application.ScreenUpdating = True
End Sub
Sub ResetTlac()
Application.OnKey "{ENTER}"
Application.OnKey "~"
Application.OnKey "{ESCAPE}"
End Subcitovat