Results 1 to 5 of 5
  1. #1
    sqlwiz is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    May 2013
    Posts
    1

    xls file

    created an access 2003 app that writes data to cells of an excel file and works with ms office 2003.
    Set openxls = CreateObject("Excel.Application")


    set XLDoc = openxls.Workbooks.open("C:\Gage.xls");
    When running it in a different PC with 2010, i get the file not found error. Even though, the xls is present.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    The code works for me using Windows 7 and Access 2010.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by sqlwiz View Post

    ...the xls is present...
    Is it 'present' at "C:\" on the errant computer?

    If it is at "C:\," on the errant PC, does the user have the needed permission to access C:\? On newer versions of Windows (say a version that might be hosting Access 2010) the C:drive is normally protected, I believe.

    Linq ;0)>

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Good point Linq. I did have issue with saving the file at C:\ and had to put it into my user folder.

    I need to get the permissions on this new Windows 7 pc set up so I login as 'Owner' or 'June' has full administrative rights. Just not sure how to do that. Something to do this weekend.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by June7 View Post

    ...Something to do this weekend...
    Well, it'll keep you off of the streets!

    Have a great weekend!

    Linq

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Import Excel file based on a date and time in file name
    By nhylan in forum Import/Export Data
    Replies: 4
    Last Post: 04-16-2013, 03:26 PM
  2. Replies: 2
    Last Post: 12-27-2012, 09:37 AM
  3. Replies: 3
    Last Post: 07-30-2012, 02:16 PM
  4. Replies: 10
    Last Post: 03-04-2012, 12:17 AM
  5. Replies: 1
    Last Post: 09-27-2010, 10:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums