Various
In the Open Standard
HK
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
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- 0NWNigel 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 - 0ZHZhang 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
- 0NWNigel 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 - 0ZHZhang 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
- 0ZHZhang 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. - 0ZHZhang 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 - 0HKHemanth 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
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?