Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Password protected workbook

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Password protected workbook

Hi Kell,
Maybe you can try this one:
Sub TestReadonly()
Application.DisplayAlerts = False
Workbook.open "C:\Yourbook.xls"
end sub

--
Regards,

Halim



"Kell2604" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protected workbook Moin Excel Discussion (Misc queries) 2 April 2nd 09 09:53 PM
password protected workbook Ann Excel Worksheet Functions 4 July 10th 08 10:47 PM
Password protected workbook JDaywalt Excel Programming 4 June 4th 07 10:39 PM
Multiple workbook user's with Master workbook - all password protected Yvon Excel Discussion (Misc queries) 2 March 30th 05 01:34 PM
Open a password protected excel workbook from second workbook to fetch data using dynamic connection kaustav choudhury Excel Programming 2 April 3rd 04 06:18 AM


All times are GMT +1. The time now is 05:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"