Following the instructions and guidance from the threads above I was able to join the domain but I’m not able to change the computer name.
I receive an error message that states it was able to join the domain but it used the old computer name.
Any suggestions for getting it to recognize a...
The computer is no longer attached to the old network and is pluggged into the new network. So it must be getting it somewhere from the harddrive right?
At the login screen I get choices for the Domain to select. The problem is the domain I want is not a selection and it won’t let me type it in. Where is it getting these options from and how do I change it or let it revert back to me typing it in?
Thanks,
Jim
Gerry,
Thanks for your explanations on how to use the word commands as Subs.
I also got a big kick out of your story on being a programming prankster. I can only imagine the look on his face.
You’re giving me ideas…
Thanks again for the feedback,
JH
I’ve tried the suggestions and they are also very good alternatives. Making the file read only definitely reduces any chances of the file being altered.
One of the good code suggestions above used the FileSaveAs and FileSave sub routines and captured the File Save As and File Save events...
I don't have any control over the program that writes the text files, so I can't add write protection from that side. That's why I took the approach of having Word open the text files to protect the original files.
Thanks for your help,
Jim
Gerry,
The file is a native text file that is created and written to by an inspection program. The operator opens the text file and examines and prints the document. It is never a Word document and I don’t believe Word can store any protection information in a Text file.
Thanks,
JH
Gerry,
I’ve incorporated your code and added the FileSave and added the code to not prompt when closing the file and I believe this should keep them form saving over the original file.
Your example was much easier than the route I was going.
Thanks for you help,
Jim
Sub FileSaveAs()
If...
Gerry,
I don't want them to be able to save the file in anyway when they open any text file with a .PRN extension. I'm not trying to confuse the issue but I did change the file extension from TXT to PRN. The PRN files are text files.
Thanks,
Jim
The code below seems to work but since I'm a novice I wouldn't mind any suggestions.
Thanks,
JH
Module:
Private Sub AutoOpen()
Call Register_Event_Handler
End Sub
Module:
Dim X As New Class1
Public Sub Register_Event_Handler()
Set X.App = Word.Application
End Sub
CLASS MODULE:
Private...
PHV,
I added it to the code but the two windows still appear after the MsgBox. So it diplays the MsgBox and then the Format warning dialog and then the MsgBox again and then the SaveAs dialog box. If you have any other ideas I'll give it a try.
Thanks for your help,
Jim
Below is the code I have so far. Currently I’m having two issues:
One is that the Register Event Handler is not Executed automatically when Word opens.
The other is Word provides a dialog box that tells you that you may loose the format since it is a txt file and then it provides another dialog...
I want to be able to execute a Sub whenever the user selects the “Save Icon” or tries to do a “File-Save” command. The end result is to keep a user from saving the active document that has an extension other than .doc.
Is there a way to tie this in?
Thanks,
Jim
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.