I'd like to refer to Google translate result box in VBA. Here's my piece of code: Kom.Offset(0, 1).Value = .getElementByID("result_box").Value but I receive an error that "Object doesn't support this property or method".
Asked
Active
Viewed 288 times
1 Answers
1
Non-input elements don't have a Value
property. Try:
.getElementByID("result_box").innerText

Tim Williams
- 154,628
- 8
- 97
- 125
-
The `result_box` is no longer included in Google translate results (~summer 2019) but this http request method does. https://stackoverflow.com/a/47249553/1898524 – Ben Feb 19 '20 at 14:52