获取行数

    1. RowsCounts = Cells(Rows.Count, 1).End(xlUp).Row

    打开网址

    1. Private Declare PtrSafe Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    2. Sub openUrl(url As String)
    3. ShellExecute 0&, vbNullString, url, vbNullString, vbNullString, vbNormalFocus
    4. End Sub