Is there any better way of writing this as the NumberOFPictures can be even 2000
If NumberOFPictures <= 47 Then Slidenumber = 2 ElseIf NumberOFPictures > 47 And NumberOFPictures <= 94 Then Slidenumber = 3 ElseIf NumberOFPictures > 94 And NumberOFPictures <= 141 Then Slidenumber = 4 ElseIf NumberOFPictures > 141 And NumberOFPictures <= 188 Then Slidenumber = 5 ElseIf NumberOFPictures > 188 And NumberOFPictures <= 235 Then Slidenumber = 6 End If
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.