+ Reply to Thread
Results 1 to 3 of 3

Beforeclose problem when file is opened as Read only

Hybrid View

  1. #1
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,331

    Re: Beforeclose problem when file is opened as Read only

    SaveCopyAs should be fine, I would think, but the ThisWorkbook.Save will fail. Try:
    If Not ThisWorkbook.Readonly then ThisWorkbook.Save
    Everyone who confuses correlation and causation ends up dead.

  2. #2
    Registered User
    Join Date
    02-02-2010
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: Beforeclose problem when file is opened as Read only

    Quote Originally Posted by romperstomper View Post
    SaveCopyAs should be fine, I would think, but the ThisWorkbook.Save will fail. Try:
    If Not ThisWorkbook.Readonly then ThisWorkbook.Save
    BullsEye!
    many thx

+ 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