G
Guest
When I create a code in Workbook #1 it works fine. I copy the sheet with the code in it and send #2 Workbook to someone else in the office. When they click on the button to run the macro, it says it can't find the file. The code is below, but I don't think it is anything in the code, it is trying to find the file that the code was orginally in. Surely a code will run without having to have the orginal workbook tied to it.... If I run this code on Workbook #2 on my computer, it will open Workbook #1 and then it will run it fine. If I delete Workbook #1, then the code won't work. Help....
Sub Remi(
Application.ScreenUpdating = Fals
Password = "to
ActiveSheet.Unprotect Passwor
Range("C39:L44").Selec
Selection.Locked = Fals
Selection.FormulaHidden = Fals
Range("C39").Selec
Password = "to
ActiveSheet.Protect Password, True, True, Tru
Application.ScreenUpdating = Tru
End Sub
Sub Remi(
Application.ScreenUpdating = Fals
Password = "to
ActiveSheet.Unprotect Passwor
Range("C39:L44").Selec
Selection.Locked = Fals
Selection.FormulaHidden = Fals
Range("C39").Selec
Password = "to
ActiveSheet.Protect Password, True, True, Tru
Application.ScreenUpdating = Tru
End Sub