+ Reply to Thread
Results 1 to 3 of 3

Prevent building shortcuts to an Excel file

  1. #1
    Registered User
    Join Date
    07-24-2015
    Location
    Toledo, OH
    MS-Off Ver
    Microsoft Office 2010
    Posts
    85

    Prevent building shortcuts to an Excel file

    This doesn't exactly have to do with Excel, but it's an Excel file I'm working on and I hope you all can help me anyway.

    My bosses want me to put an Excel database I've built into a public folder that is accessible by anyone in the office network. But they don't want me to allow people to make shortcuts to this particular file. The reason is because the shortcut first gets created in the network folder, and then when the user drags it to the desktop it makes a copy, leaving the original shortcut in the main folder. After a week, everyone in the office has built shortcuts, sometimes two or three, and suddenly there are fifty million shortcuts clogging this folder for no good reason.

    My bosses also don't want me to allow copies of the file to be made, because then we would have multiple copies of this gigantic database flooding our network files and crashing our system. Now, there's probably no way to prevent people from saving the file under a new name and thereby making a copy of it, but I'm hoping there IS a way to prevent people from saving it to their own hard drives. Is there?

    Again, this doesn't exactly have to do with Excel, but I would appreciate any advice you all have to give. Thank you!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Prevent building shortcuts to an Excel file

    Sounds like Group Poilcy related but that would be handled by your network administrators.
    I doubt you can stop people saving anything to their hard drive the way you want.
    Preventing files saved to hard drive would no doubt prevent temporary files being saved as well.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Prevent building shortcuts to an Excel file

    Ok, I had to root around in some files written by an ex-colleague who was a bit of a VBA guru. This code prevents users saving the file unless they have the password:
    Please Login or Register  to view this content.
    However, you probably want to allow users to save the file, but disable SaveAs - so I had a bit of a play with the code and came up with this, which seems to work. (Health warning - I'm not on a network at the moment, so haven't been able to test it on network drives / Sharepoint / etc.)
    Please Login or Register  to view this content.
    As with any macro, if a user disables macros on opening the file, this won't work.


    Instructions for installing the code:
    - Press Alt-F11 to open the VBA editor
    - On the left-hand side near the top, right-click 'ThisWorkbook' and select 'View Code' (or just double click 'ThisWorkbook')
    - Paste in the code above on the right-hand side
    - Save the file as a Macro-enabled workbook (.xlsm)


    Hope that's of some use to you.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ 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. Windows 8 Shortcuts Interfering with Excel Shortcuts
    By Linda Campbell in forum Excel General
    Replies: 4
    Last Post: 05-12-2015, 01:12 AM
  2. Replies: 1
    Last Post: 08-30-2013, 04:38 PM
  3. [SOLVED] How do I prevent if someone tries to delete my excel file ?
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-10-2013, 10:21 PM
  4. [SOLVED] Prevent deletion of Excel File
    By sylv1501@(remove)yahoo.com in forum Excel General
    Replies: 2
    Last Post: 08-22-2006, 03:15 PM
  5. Protecting Excel file to prevent changes
    By simmerdown in forum Excel General
    Replies: 1
    Last Post: 04-19-2006, 05:30 PM
  6. Prevent deletion of Excel file
    By JAMES T. in forum Excel General
    Replies: 1
    Last Post: 09-18-2005, 02:05 PM
  7. File Shortcuts
    By Tom Rogers in forum Excel General
    Replies: 0
    Last Post: 02-01-2005, 06:06 PM

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