If count < max Then
                  If Br.Checked = True Or AM.Checked = True Or LU.Checked = True Or PM.Checked = True Or SU.Checked = True Or EV.Checked = True Then
                            'Code
                  End If
                        
  End If

is there a way i can put both if statements together like

if (count<max) and (br.checked=true or am.checked=true) then
'code
end if


I have too many if statements and it looks like my program is slowing down a bit or maybe its because i'm sending alot of information to microsoft word through automation.

if (count<max) and (br.checked=true or am.checked=true) then
'code
end if

Yes, you can do this.

commented: thanks +2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.