close

hi, i am trying to open a password protected file from vba, i know the
password for the file, but is there anyway that i could include the password
in the coding so that it would not promt for password?, pls help.

Application.DisplayAlerts = False 'shuts off the pop-ups
Your code here...........
Application.DisplayAlerts = True 'turns things back to normal

Vaya con Dios,
Chuck, CABGx3

quot;Jasonquot; wrote:

gt; hi, i am trying to open a password protected file from vba, i know the
gt; password for the file, but is there anyway that i could include the password
gt; in the coding so that it would not promt for password?, pls help.

You're trying to open an Excel workbook file?

Open() method for workbook objects includes an optional parameter for a
password
quot;Jasonquot; wrote:

gt; hi, i am trying to open a password protected file from vba, i know the
gt; password for the file, but is there anyway that i could include the password
gt; in the coding so that it would not promt for password?, pls help.

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()