Skip to content

Various

Hemanth KumarMember for 23 years 11 months
Created
23
3
0
Hi Planners

I have 2 Questions; hope I will get prompt solutions from experienced planners out there

1. Project Protection

I don’t want my project, layout, grouping, color scheme, and other customizations to be coped by anybody else
Let others view & print plans but I want to deny editing& Copying
Of course when I put write reservation password they can, copy the project by “save as”
Simply my question is how can I disable “save as” in a write protection enabled project

2. Views, tables

I want to limit views and tables in a project
I want only the views I create
Even when I delete the other views ( tools –organizer) the views does not goes !


Thanks

Hemant
rohininilayam@yahoo.com



23 replies

Oldest first
  1. 0
    Nigel Winkley ·
    Quick solution is to issue Adobe Acrobat PDF files of the views that you want others to see and do not let them have access to the project plan.

    It will upset peopple - as they cannot interfere - but it does protect everything.

    I cannot think of a way to do as you request as, like you say, copying removes most of the protection.

    Anyone else know of a way?

    Cheers

    Nige
  2. 0
    Zhang Haixiang ·
    MSP can not give you these ability.
    you can
    1. use PDF for distribution
    2. export to excel for distribution
    3. Put you .mpp in a folder where all others have only read access right.
    4. Use P3 instead
  3. 0
    Zhang Haixiang ·
    You can not prevent others from using ’Save as’ in MSP
    BTW why you need this.
    you just need to protect your own copy or the copy for distribution
  4. 0
    Zhang Haixiang ·
    I’m still thinking of this "save as" issue
    you need VBA code
    Try the following draft code:

    1. insert a new class module named ’class1’
    then add the following code:
    ===========================================
    Public WithEvents App As Application

    Private Sub App_ProjectBeforeSave(ByVal pj As Project, ByVal SaveAsUi As Boolean, Cancel As Boolean)
    Dim strName As String
    strName = InputBox("Password:")
    If strName <> "z" Then
    Cancel = True
    MsgBox "you do not have the right to save" & Chr(10) & " Close the project without saving"
    End If
    End Sub
    ============================================
    2. goto ’VBAPorject’ -> ’Microsoft Project Objects’ -> ’This project’
    add the following code:
    ============================================
    Dim myapp As New Class1

    Private Sub Project_Open(ByVal pj As Project)
    Set myapp.App = Application
    End Sub
    ============================================

    3. set password to protect this VBAProject

    with this code, when you try to save/save as the project
    there will be a popup window to check password(here the password is ’z’, you can change it).
    if the password is not correct, the save operation will be canceled with a message - you do not have the right to save...

    I think for most of the users, this kind of protection is enough. But this is still easy to crack, as you can find a lot of tools(software) to remove VBA protection, then you can see the above code.

    hope this helps


  5. 0
    Hemanth Kumar ·
    Thanks For The Quick Replies

    I Am Studying The Code....

    The Answer For Why This Protection:


    My Immediate Boss is copying my plans and showing others as his own !!!!!!!!!
  6. 0
    Nigel Winkley ·
    Simple. Keep two copies. One, in a ’hidden’ folder being the real one, the second, available to your boss, being fake - you could change dates, durations, add in spurious activities - "Go to nightclub", "Sack the PM" etc.

    Nasty, I know, unprofesisonal, I know but soo much fun!

    Nige
  7. 0
    Hemanth Kumar ·
    Dear Zang
    But any body can disable macros when opening
    and VBA is greek to me ,i copied your codes ,but does not work!!!!!!!!!!!!,can you mail me a protected project to me

    thanks
  8. 0
    Zhang Haixiang ·
    I can not find you email-address.

    Yes, anyone can disable the micro when opening, but you can add some code, when save the project it will make the project un-readable,only you select to run the micro when opening, then it will restore the project.

    I don’t think it’s worth to do all these.

    They still can copy all the tasks, then paste to new project.

    Anyway PDF is the best choice, or you need to use P3
  9. 0
    Hemanth Kumar ·
    Dear Zhang

    My Email Address : rohininilayam@yahoo.com
    i dont mind copying tasks, But Outline structure ,colorschemes,etc
    thanks
  10. 0
    Zhang Haixiang ·
    Hemanth Kumar,

    I’ve sent you the project.
  11. 0
    Hemanth Kumar ·
    thank you zhang

    i will look in to it


    but my 2nd question is not yet answered.

    thanks
    hemant
  12. 0
    Lee (YS) Li ·
    To delete the view from Tools/Organize still won’t work when some others open your file on his computer, I would suggest you to rename your view or filter, customized group etc with "AA", then they stays together at the top.

    Lee
  13. 0
    Hemanth Kumar ·

    But Lee I Dont Want Anymore Views Other Than Mine


    Thanks Dear Zhang For The Project
    But Anybody Can Disable Macros When Opening The Project,
    Your Code Works When Macro Is Enabled!!!!
    Think Big



    Hemanth

  14. 0
    Lee (YS) Li ·
    Macro can be disabled in two ways:
    1. to rise-up the security of macro-alert (Marcor/security..)

    2. to erase any code under VBA window (Atl+F11)

    Lee
  15. 0
    Hemanth Kumar ·
    Lee
    Please
    Read Earlier Posts

    we are inserting a class module in project
    which becomes disabled once one disable macros when starting up MSP project
  16. 0
    Zhang Haixiang ·
    Hi Hemanth Kumar,

    Yes, anyone can choose disable the micro when opening the project.

    You need more micros to sovle this issue.
    the idea is when the user close the project, the micro will be run, it will make the porject un-readable. e.g. chage the task name ’start design’ to ’ngised trats’. then make another micro which will change ’ngised trats’ backto ’start design’ when opening the project.

    if someone disable the micro when opening, he can’t read the project.
  17. 0
    Hemanth Kumar ·
    Interesting
    But How

    Can You Work On It Please ?

  18. 0
    Zhang Haixiang ·
    Hi,
    1. insert a module and add the following code
    =======================================================
    Sub ReverseTaskName()
    Dim lngTaskCount As Long
    Dim i As Long
    Dim strTaskName As String
    Dim strRTaskName As String
    Dim intLen As Integer
    Dim j As Integer
    On Error GoTo ter

    lngTaskCount = ActiveProject.Tasks.Count
    For i = 1 To lngTaskCount

    strRTaskName = ""
    strTaskName = ActiveProject.Tasks(i).name
    intLen = Len(strTaskName)
    For j = 1 To intLen
    strRTaskName = strRTaskName & Right(strTaskName, 1)
    strTaskName = Left(strTaskName, Len(strTaskName) - 1)
    Next j
    ActiveProject.Tasks(i).name = strRTaskName


    Next i


    ter:

    End Sub
    ============================================================

    2. under "thisproject" add the following code
    ----------------------------------------------------------
    Private Sub Project_BeforeClose(ByVal pj As Project)
    Module1.ReverseTaskName
    End Sub
    then add module1.reversetaskname to project_open,so it looks like:
    ---------------------------------------------------------
    Private Sub Project_Open(ByVal pj As Project)
    Set myapp.App = Application
    Module1.ReverseTaskName

    End Sub
    -----------------------------------------------------------

    HTH
  19. 0
    Zhang Haixiang ·
    Hi,

    The above code is just a demo,to make it functional,you need modify the previous ’save’ code so after the taskname was reversed , the porject will automatically saved without asking for a password.
  20. 0
    Zhang Haixiang ·
    But other change made by the user will also be saved
  21. 0
    Zhang Haixiang ·
    Ok, you need not chage the ’save’ code.
    that make no save if the user do not know the password.
    But make sure when you send this project to others, the file is saved with reversed task name.
  22. 0
    Hemanth Kumar ·
    thanks lee
    but my issue was how to delete other views.
    i found the answer
    that is you have to remove views from global .mpt to clear all the views.

    coming back to VBA

    thanks Zhang, for you tip
    i started writing codes
    i added following codes

    that is on close
    text color change to white
    open the view " bulshitview"!!!!!!!
    save file

    on open chane text color to black

    and open the view to "good View"

    if anybody disable macros, he cant see my project
    and if he enable macros, he cant save the project


    got the point ?
    is’nt that great?


    thank you



    hemant
  23. 0
    Zhang Haixiang ·
    It’s good idea.

    If I do this to my boss, he will kill me :)

    Good luck

Log in or join to reply

ProjectControls.com is free to join. Members can post questions, reply, vote and follow discussions.

Existing members: your original username and password still work. Forgot password?