View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Per Jessen Per Jessen is offline
external usenet poster
 
Posts: 1,533
Default Password protected workbook

Hi
Open the workbook as ReadOnly by default:

Workbooks.Open Filename:="MyFile.xls", ReadOnly:=True

Hopes this helps.

---
Per

"Kell2604" skrev i meddelelsen
...
In a macro I have it opens a workbook that is password protected. I would
like the macro to accept the Read Only option, without me having to
actually
click on the prompt. Is this possible?

The DisplayAlert command doesn't seem to work (unless I'm using it wrong).

Thanks very much as always!!
Kelley