Results 1 to 2 of 2
  1. #1
    Amras is offline Novice
    Windows 2K Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Sioux Falls, SD
    Posts
    29

    Open Excel spreadsheet via Access VBA as Read-only

    Good afternoon, all. Thanks for the taking the time to review my question. I thought that this should be easy, but I'm not able to find anything in either Google or Bing: I'm trying to open an Excel spreadsheet with VBA code in a 2010 MS Access db, but I want it to be a Read-Only copy of the spreadsheet. I've simply used Application.FollowHyperlink in the past, but I can't seem to find a parameter to open my referenced spreadsheet as a read-only copy. I apologize if this has already been addressed elsewhere; I couldn't find anything. If it's of any help, the path for the spreadsheet in question is "R:\Customer Contact Center\CS Assistance Documents\Exclusive and Incentivized Mail Order.xlsx". Any help will be appreciated!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Can't use FollowHyperlink for that.

    Would have to establish Excel object variables in VBA, set those variables, and manipulate the objects.

    Otherwise, set the permissions on the Excel file to be read-only. That could also be done programmatically, but I've never tried. Review http://www.access-programmers.co.uk/...d.php?t=215253
    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.

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

Similar Threads

  1. Replies: 2
    Last Post: 05-24-2015, 02:22 PM
  2. Replies: 3
    Last Post: 11-12-2013, 04:13 PM
  3. Creating excel spreadsheet from access vba
    By nyneave in forum Programming
    Replies: 1
    Last Post: 10-12-2012, 09:59 AM
  4. Open Excel spreadsheet in Access
    By carlyd in forum Forms
    Replies: 1
    Last Post: 02-17-2012, 01:09 PM
  5. Replies: 10
    Last Post: 11-09-2011, 01:56 PM

Tags for this Thread

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