我对VBA相对较新,并尝试使用一系列用户表单来生成填充单独的webform的URL。将在webform中填入输入到userform中的信息。 “网站”是指向预先填充的网络表单模板的链接。
我在嵌套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