+ Reply to Thread
Results 1 to 1 of 1

Workbooks.Open (Readonly:= true) fails at random times

  1. #1
    Registered User
    Join Date
    09-30-2015
    Location
    Amsterdam
    MS-Off Ver
    excel 2010
    Posts
    1

    Workbooks.Open (Readonly:= true) fails at random times

    Hello guys(and girls)
    this is my first post and i really don't understand why my code isn't just working.
    well it works, but when it runs for some minutes or hours it stops because of the ignoring popup to insert password of the file i want to open.. but i only need to open it in readonly mode.
    Is there here someone who knows what is going on? om working with excel 2010

    this code is the problem:
    Set wbSource = Workbooks.Open(Location & "\" & Filename, ReadOnly:=True) ' should open file in read only mode so no password popup pops up

    hope there is someone who can help me.

    greetings, WannabeNerd


    Please Login or Register  to view this content.
    some extra info:

    when i use workbooks.open (Location & "\" & Filename),WriteResPassword:="Password"

    the popup (Password File.xlsm is reserved by enter password or open read only) pop ups also at random times.. it's working fine for minutes/hours, but then at random it fails....
    Last edited by wannabeNerd; 09-30-2015 at 11:44 AM. Reason: Extra Info

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Skip if Workbooks.Open fails to open the file
    By mhraja in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2015, 06:50 PM
  2. [SOLVED] Open workbook if not readonly. If readonly try again.
    By Metrazal in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2014, 02:45 PM
  3. workbooks.open fails with no error
    By steve99g in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-27-2013, 12:09 PM
  4. Replies: 14
    Last Post: 08-17-2012, 10:54 AM
  5. [SOLVED] Workbooks.Open fails
    By Juuljus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2006, 05:10 AM
  6. Replies: 1
    Last Post: 01-02-2006, 11:30 PM
  7. Replies: 0
    Last Post: 12-30-2005, 04:35 AM

Tags for this Thread

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