+ Reply to Thread
Results 1 to 8 of 8

Any reason this VB script would work for some, but debug as read-only for others?

  1. #1
    Registered User
    Join Date
    05-02-2013
    Location
    Telford
    MS-Off Ver
    Excel 2003
    Posts
    4

    Any reason this VB script would work for some, but debug as read-only for others?

    Hiya all,

    I have a simple macro that copies information across to another workbook, on a new line.

    We are in an office where the workbook 'output.xls' is saved on a shared drive that all staff have modify access to. The workbook that this script runs from, 'input.xls', is saved to each person's personal drive.

    The form seems to work perfectly fine for half of the agents, but other agents get a read only version of 'output.xls' opening instead, and so they get a debug error when it tries to save. I cannot figure out why this would happen for some colleagues, but not others.

    Any ideas?


    Thank you.


    Please Login or Register  to view this content.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Any reason this VB script would work for some, but debug as read-only for others?

    are they opening the workbook while someone else already has it open?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    05-02-2013
    Location
    Telford
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Any reason this VB script would work for some, but debug as read-only for others?

    Not as far as I'm aware; It still works for me and I've checked with a few other agents and it seems OK for them too, but other agents get output.xls opening as 'read-only' every time.

    Does the code look OK? I couldn't spot anything wrong with it myself.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Any reason this VB script would work for some, but debug as read-only for others?

    it looks ok to me too. can those users manually open, change and save the file?

  5. #5
    Registered User
    Join Date
    05-02-2013
    Location
    Telford
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Any reason this VB script would work for some, but debug as read-only for others?

    If the agents who are having errors open the 'output.xls' workbook directly, it still opens as read-only for them. I'm assuming this means that there is something outside of the script affecting them?

    Not entirely sure what to check though. I have spoken to out IT guys and they have set permissions for the folder to be modify for everyone.

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Any reason this VB script would work for some, but debug as read-only for others?

    sounds like the permissions are wrong to me-can they create a new workbook in that folder? if not do the affected users have any active directory group memberships in common?

  7. #7
    Registered User
    Join Date
    05-02-2013
    Location
    Telford
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Any reason this VB script would work for some, but debug as read-only for others?

    Ah! If they try and create an excel workbook in the same folder, it comes up as access denied. This must be a permissions problem then!

    Thank you for your help. I'll just have to go and beat the IT guy lol

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Any reason this VB script would work for some, but debug as read-only for others?

    NT permissions can be a minefield so don't hit him too hard ;-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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