+ Reply to Thread
Results 1 to 5 of 5

Follow hyperlink and read only

  1. #1
    Registered User
    Join Date
    06-05-2010
    Location
    Copenhagen
    MS-Off Ver
    Excel 2007
    Posts
    2

    Follow hyperlink and read only

    Hi,

    I'm using this simple code to open any file from Excel (mostly Excel and Word):

    Please Login or Register  to view this content.

    How do I set ReadOnly? The idear is not to make changes to the opened files.

    Kind regards

    Peter

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Follow hyperlink and read only

    Hello Peter,

    You can not set the the workbook "ReadOnly" property using a hyperlink. This can only be set using the Workbooks.Open method with its argument "ReadOnly" set to true.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Follow hyperlink and read only

    If you want to change the access mode of the just-opened workbook,
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Follow hyperlink and read only

    The document he is opening via hyperlink in the original post is a Word document.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Follow hyperlink and read only

    Right:
    to open any file from Excel (mostly Excel and Word):
    My post is for the Excel files.

+ 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