[英]Open folder from list in Excel sheet using VBA
假設您在A到C的前三列中都有表格。您可以在單元格E1中寫入序列號並運行宏。 例如,如果您在單元格E1中輸入3並單擊按鈕,則來自Edres的文件夾將打開。
Dim strFolderPath As String
Dim NrRow As Long
NrRow = Cells(1, 5)
strFolderPath = Cells(NrRow + 1, 3).Value
ThisWorkbook.FollowHyperlink (strFolderPath)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.