PDA

View Full Version : [SOLVED:] VBA open password protected file in read only mode



megtoma
08-14-2014, 12:44 AM
Hi,

Does anyone know how to alter the below code to open it in read only mode?

Workbooks.Open Filename:="\\xxx\jjj\ (file://\\xxx\jjj\Exits\High)\Phase3 WP1.xls", Password:="zombie"

Many thanks in advance,

mancubus
08-14-2014, 01:01 AM
hi.

add:
, ReadOnly:=True

megtoma
08-14-2014, 01:14 AM
thank you . my query is solved
:biggrin:

mancubus
08-14-2014, 01:26 AM
you are welcome.
thanks for the feedback and marking the thread as solved.