+ Reply to Thread
Results 1 to 2 of 2

Read Only Dialog boxes - Opting for Read Only with VBA

  1. #1
    Registered User
    Join Date
    05-11-2005
    Location
    Birmingham, UK
    Posts
    22

    Read Only Dialog boxes - Opting for Read Only with VBA

    Hi

    I am trying to have a command button automatically open some other excel workbooks, gather information from them and copy that information into my worksheet.

    I have come across a workbook which has been set up to be 'READ ONLY' unless you provide a password. I do not have access to the password and would like to know what VBA command i should use to have it automatically select the READ-ONLY option when prompted. Is this the READONLYRECOMMEND property? I've tried a couple of variations with that but had no success.....

    Any help would be much appriciated.

    Emm100

  2. #2
    Registered User
    Join Date
    05-11-2005
    Location
    Birmingham, UK
    Posts
    22
    Now Solved!

    For reference:

    Workbooks.Open FileName:="YourFile.xls", ReadOnly:=True

    Emm100

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1