嵌套如果然后语句跟随超链接VBA

我对VBA相对比较陌生,并试图使用一系列的用户表单来生成填充单独的表单的URL。 networking表单将填入用户表单中input的信息。 “网站”是指向预填充的networking表单模板的链接。

我在嵌套If Then语句来触发URL生成时遇到了一些问题。 任何帮助将非常感激。

If (UserForm1.Tier1 = True Or UserForm1.Tier2 = True) And UserForm1B.CheckBoxN = True Then If UserFormN.ComboBoxNPT = January And UserFormN.ComboBoxNPG >= 1 Then ActiveWorkbook.FollowHyperlink ("WEBSITE" & "Vendor Name: " & UserForm1.ComboBoxVN.Value & "%0A" & UserFormN.Label119.Caption & ": " & UserFormN.ComboBoxNPG.Value) ElseIf UserFormN.ComboBoxNPT = January And UserFormN.ComboBoxNPS >= 1 Then ActiveWorkbook.FollowHyperlink ("WEBSITE" & "Vendor Name: " & UserForm1.ComboBoxVN.Value & "%0A" & UserFormN.Label120.Caption & ": " & UserFormN.ComboBoxNPS.Value) End If End If