0

I have been working on a piece of code and have ran into some errors with some if statements. I keep getting the error "block if without end if" I have changed my code around and done some research but have not been able to figure it out, me moving some stuff around now I'm getting some "case without select case" errors too which I'm too sure as to why because my "case was selected in another line of code previously". I apologize if it's a dumb question, it's my first time doing something like this and any help would be appreciated. Thank you.

        Case "Group 1"
         If Day(DOH + 60) = 1 Then
                    If class = "D1" Then
                        GracePeriod = DOH + 60
                    Else
                    GracePeriod = Application.EoMonth(DOH + 60, 0) - 0
                    If class = "E1" Then
                        GracePeriod = DOH + 30
                End If
            
        
         Case "Group 2", "Group2"
            If Day(DOH + 60) = 1 Then
                If class = "FT1" Then
                    GracePeriod = DOH + 60
                Else
                    GracePeriod = Application.EoMonth(DOH + 60, 0) - 44
                If class = "A1" Then
                    If Day(DOH + 30) = 1 Then
                        GracePeriod = DOH + 30
                    Else
                        GracePeriod = Application.EoMonth(DOH + 30, 0) - 0
                    End If
      
hakai
  • 1

0 Answers0