sassriverrat
Well-known Member
- Joined
- Oct 4, 2018
- Messages
- 655
The red line of text has not produced an error before but now does and I'm not sure why. The cells of this line just have a word or set of numbers, a "password" of sorts. Any ideas what might pop the error?
Thanks.
Note: i've only pulled a section before this code is LONG. Happy to pull more if needed. Also- there are lots of little "development phase" notes....sorry.
Thanks.
Note: i've only pulled a section before this code is LONG. Happy to pull more if needed. Also- there are lots of little "development phase" notes....sorry.
Rich (BB code):
Private Sub Workbook_Open()
'On Error GoTo Helper
Dim sProcname As String
Dim resp As String
'This will show the Userform 1 when starting and hide the excel sheet in the background
'Also checks to see if program has ever been run, and if not, loads program for the first time
Application.Visible = False
Dim s As String
Dim namer As String
Dim d As Variant
Dim ExpirationDate As Date
Dim pass1 As String
Dim pass2 As String
With Sheets("Developer")
s = .Range("B34") 'username
'pass1 = .Range("B15:E15").Value 'sheet unprotect
'pass2 = .Range("B39").Value 'date password
ExpirationDate = .Range("E37") 'expiration date
d = .Range("B39").Value 'registration key
initialdate = .Range("C36") 'initializing date
End With
'ExpirationDate = (Sheets("Developer").Range("E37")) 'expiration date
'edate = Sheets("Developer").Range("E37")
namer = Sheets("Notes").Range("N4") 'just a name
s = GetSetting("DemoTest", "Registration", "Username")
'Sheets("Developer").Unprotect Password:=Worksheets("Developer").Range("B15:E15").Value, UserInterfaceOnly:=True
If s = "" Then
Sheets("Developer").Unprotect Password:=Worksheets("Developer").Range("B15:E15").Value, UserInterfaceOnly:=True
Sheets("Developer").Range("B34:F34").ClearContents
's = InputBox("Welcome to the " & namer & " Voyage Reporting System." & vbCrLf & "Please input the appropriate name to initialize the system for the first time." & vbCrLf & vbCrLf & "Note: this information can be modified later by clicking on the [Developer] button.", namer, "Bridge")
'UserForm17.Show
s = cInputBox()
'MsgBox s