S
sam_puploh
I'm trying to put something into the windows clipboard from IP:
Devised following test-code:
Sub XDocument_OnLoad(eventObj)
Dim oTekst: Set oTekst =
XDocument.DOM.selectSingleNode("//my:myFields/my:txbCP")
on error resume next
oTekst.Text = "Hello, this was entered in this box at form - load :
" & Right(Now(), 8)
XDocument.View.selecttext(oTekst.missing.value)
XDocument.View.ExecuteAction ("copy") ' Programmatically put in
clipboard.
if err.number <> 0 then
msgbox err.Description
err.Clear
end if
Set oTekst = Nothing
End Sub
I get an error in the ... XDocument.View.selecttext(oTekst) line
- also tried to insert "missing.value" to no avail?
Errormessage: an object is obligatory (translated from Danish, maybe
another error in English). I've transcripted from JS that I don't know
very wll, but it looks ok to me though?
What am I doing wrong?
Devised following test-code:
Sub XDocument_OnLoad(eventObj)
Dim oTekst: Set oTekst =
XDocument.DOM.selectSingleNode("//my:myFields/my:txbCP")
on error resume next
oTekst.Text = "Hello, this was entered in this box at form - load :
" & Right(Now(), 8)
XDocument.View.selecttext(oTekst.missing.value)
XDocument.View.ExecuteAction ("copy") ' Programmatically put in
clipboard.
if err.number <> 0 then
msgbox err.Description
err.Clear
end if
Set oTekst = Nothing
End Sub
I get an error in the ... XDocument.View.selecttext(oTekst) line
- also tried to insert "missing.value" to no avail?
Errormessage: an object is obligatory (translated from Danish, maybe
another error in English). I've transcripted from JS that I don't know
very wll, but it looks ok to me though?
What am I doing wrong?