+ Reply to Thread
Results 1 to 4 of 4

Get code that works on excel version 2007 to work on version 2010

  1. #1
    Registered User
    Join Date
    12-20-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2013
    Posts
    53

    Get code that works on excel version 2007 to work on version 2010

    Hello Forum,
    The code below works perfectly well for Excel 2007, however, it works only half way for excel 2010. I only use excel 2010 and it would be wonderful if this code can work this version.
    This is what the code executes when it's run: if BOOK1.xlsm is already being used by another user on the network then the code will open BOOK1.xlsm as readonly, if no one is using it then the code will open BOOK1.xlsm as read-write.

    Please Login or Register  to view this content.
    Any help on this issue would be greatly appreciated.

    Thanks in advance.
    Last edited by Agent1; 12-19-2014 at 02:24 PM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: get code belonging to excel version 2007 to work on version 2010

    On which line does the error occur, and what is the error message?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    12-20-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2013
    Posts
    53

    Re: get code belonging to excel version 2007 to work on version 2010

    Good point! i forgot to pinpoint the issue LOL!
    The code works well when i open it as readwrite; it automatically gets rid of the readonly prompt message and enters the passcode. However, when the code tries to open it as readonly, it gets rid of the readonly prompt message but still prompts for a passcode (see red font below)
    Please Login or Register  to view this content.
    Last edited by Agent1; 12-21-2014 at 01:23 AM.

  4. #4
    Registered User
    Join Date
    12-20-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2013
    Posts
    53

    Re: get code belonging to excel version 2007 to work on version 2010

    Quote Originally Posted by Olly View Post
    On which line does the error occur, and what is the error message?
    Hi Olly,
    I don't think i answered your question fully: i don't receive any error messages, but the code does not fully work as mentioned in post #3

+ 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. Replies: 0
    Last Post: 05-02-2014, 01:56 PM
  2. Working 2007 excel add-in wont work with excell 2010 version. Please help.
    By kraft_mk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2014, 08:53 PM
  3. does my excel form with vba made for 2003 work in the 2010 version?
    By impartrudie in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-23-2011, 08:56 AM
  4. Excel 2007 to 2010 version problem
    By Gundersen in forum Excel General
    Replies: 0
    Last Post: 03-31-2010, 09:01 AM
  5. Can we know the Excel Version (2003 or 2007) thru code
    By karan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2009, 03:49 AM

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