Consulting

Results 1 to 4 of 4

Thread: renaming a file

  1. #1

    renaming a file

    is there a way to programmatically (vba) or otherwise prevent a user from renaming a workbook?

    any pointers would be appreciated.
    thank you.
    erik

  2. #2
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    Hi Erik,

    While you can prevent (presuming macros are enabled) a SaveAs with the workbook open, I am unaware of how you would prevent the renaming of any file that is closed.

    Are you doing this to prevent extra/unwanted copies from being produced?

    Mark

  3. #3
    hi mark, long time.
    no, i am just looking for ways to prevent my code from breaking. i have my workbook creating desktop shortcuts and dont want the link to break. as an aside, it would be nice to prevent copies being made.
    erik

  4. #4
    Here is the free software to do the job.

    http://www.thewindowsclub.com/prevent-cut-paste-copy-delete-re-naming-of-files-folders

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •