Thanks very much for your responses. For whatever reason, the stuff that wasn't working yesterday - is working today. I've thoroughly tested the following code and it works. I can only assume that it has something to do with shutting down my computer after having made several changes yesterday. Protecting the worksheet is now not making the workbook dirty - and therefore it remains accessible to other users. My program creates dozens of modules of the following code for various sets of data - each connected to a button in the main application. If anyone sees anything that doesn't look kosher please let me know.
Public Sub RigData1()
Dim ThisFile As String
Dim ThisFileName As String
Dim Wks As Worksheet
ThisFile = "E:\RigReports\285634_anreport_daily_north_2015-04-13.xls"
ThisFileName = "285634_anreport_daily_north_2015-04-13.xls"
If Not WkBkIsOpen(ThisFileName) Then Workbooks.Open FileName:=ThisFile, ReadOnly:=True
Workbooks(ThisFileName).Worksheets("PERMITS").Activate
Set Wks = ActiveSheet
Wks.Protect ("HudgieBear73")
Columns("C:C").Select
Selection.Find(What:="North Dakota", After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.Select
End Sub
Thanks,
Paul Hudgens
Denver