Excel宏開啟URL 特殊字元#變了

來源:互聯網
上載者:User

標籤:excel宏   config   internet   一個   customize   latest   span   perl   lob   

首先開啟EXCEL,點擊左上方的"檔案"按扭(07版的是的圓表徵圖),開啟選項,再點擊自訂功能區(Customize Ribbon),在右邊,把開發工具(Developer)前的打上勾,點確定開啟開發工具。

在開發工具裡選擇insert一個按鈕

https://jingyan.baidu.com/article/9113f81b0c19e22b3214c78e.html

按鈕一的代碼如下

ActiveWorkbook.FollowHyperlink Address:="http://www.baidu.com/production/#!finder_result?global=object-id&revs=latest&conf=no-configurations&text=", NewWindow:=True

而實際開啟網頁後發現     #!      變為%20_%20,導致網頁打不開

 

修改代碼為

Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.baidu.com/production/#!finder_result?global=object-id&revs=latest&conf=no-configurations&text=", vbNormalFocus

  或者

Dim web As Object    Set web = CreateObject("InternetExplorer.Application")    web.Visible = True    web.Navigate ("http://www.baidu.com/prodution/#!test=")

  

Excel宏開啟URL 特殊字元#變了

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.