VBA MACRO EXCEL错误不将数据提取到Excel中

这些行在我的脚本引发错误。 也为你提供相应的html,以便分析已经在html中给出的描述属性,也不接受带有dot(。)的html id属性

macrosVBA-

searchtxt.Value = "Earth" .document.forms(0).submit Do While .Busy DoEvents Loop Do While .readyState <> 4 DoEvents Loop ThisWorkbook.Sheets(1).Range("A2") = "hgvgjjlj" Set doc = .document Set searchres = doc.getElementById("description").innerText ThisWorkbook.Sheets(1).Range("A1").value = searchres 

HTML的

 <textarea onblur="this.isFocused=false;" onkeydown="multiKeyDown(this);" onfocus="this.isFocused=true;" onchange="this.isFocused=false;multiModified(this)" data-charlimit="false" data-length="4000" spellcheck="true" name="u_incident_task.description" style="width: 100%; overflow: hidden; word-wrap: break-word; resize: none; height: 356px;" id="u_incident_task.description" wrap="soft" specialtype="" class="form-control">Description: Description xyz asdfghvb</textarea>