2016-02-23 65 views
0

有沒有使用VBA將工作簿固定到Excel固定項目列表的方法?使用VBA將Excel 2013工作簿固定到任務欄

我已經研究了互聯網高低,但似乎無法找到任何好的例子,或者即使可能的方法?

謝謝!

enter image description here

+0

由文件只是被打開運行VBA應該用別針把它 – bvmcode

+0

http://answers.microsoft.com/en-us/office/forum/office_2013_release-word/where-are-pinned-documents- stored-in-office-2013/b10a9335-3f0e-4f24-aeb1-bb86a5183c67 –

+0

@bvmcode工作簿將位於最近的列表中,但未鎖定。 –

回答

0

感謝Tim威廉姆斯在上面的評論,我能得到一個VBA代碼添加/刪除,將PIN碼,並取消固定項目註冊表項。

If RegKeyExists("HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\BEApplication\") = False Then 
     ' Code for adding registry key 
      Dim myWS As Object, strPath 
      strPath = <Folder Path> 
      Set myWS = CreateObject("WScript.Shell") 

      myWS.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\BEApplication\Path",strPath,"REG_SZ" 


    Else 
     ' Key exists - do nothing 
End If 
相關問題