ExcelVba _ express 100 _ One-Stop express Query

Source: Internet
Author: User

Sub ExcelVba _ express 100 _ One-Stop express query () Set mx = CreateObject ("WinHttp. winHttpRequest.5.1 ") Set MS = CreateObject (" MSScriptControl. scriptControl ") ms. language = "javascript" Cells. clear mx. open "GET", "http://www.kuaidi100.com/kuaidiresult? Id = 4137591 ", False mx. send mx. Open" GET "," http://www.kuaidi100.com/query? Id = 1 & type = "& Split (mx. responsetext, "var com =") (1), ") (1) &" & postid = "& Split (mx. responsetext, "var com =") (1), ") (3) &" & valicode = & temp = "& Rnd (), False mx. send ms. addCode "a =" & mx. responsetext For j = 0 To ms. eval (". data. length ")-1 Cells (j + 1, 1) = ms. eval (". data ["& j &"]. context ") Cells (j + 1, 2) = ms. eval (". data ["& j &"]. time ") Cells (j + 1, 3) = ms. eval (". data ["& j &"]. ftime ") Next jEnd Sub


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.