Hi guys,
I've got a range ws.Range("BF4:BY4"), that gets pasted to a function. Both the value of "BF4" & NoOfImpressionsBox(combobox) are "1" i've checked with msgbox to make sure both variable return 1. However when running the code, they are not matching and the if statement is skipping. I've used the exact same processes elsewhere and it works.
Any suggestions?
Thanks guys!
Code:
For Each cellImp In hideRange
If cellImp.Value = NoOfImpressionsBox.Value Then
cellImp.EntireColumn.Hidden = False
Else
cellImp.EntireColumn.Hidden = True
End If
Next cellImp
I've got a range ws.Range("BF4:BY4"), that gets pasted to a function. Both the value of "BF4" & NoOfImpressionsBox(combobox) are "1" i've checked with msgbox to make sure both variable return 1. However when running the code, they are not matching and the if statement is skipping. I've used the exact same processes elsewhere and it works.
Any suggestions?
Thanks guys!
Last edited by a moderator: