biocentrism
Board Regular
- Joined
- Jul 28, 2014
- Messages
- 187
Hello
I have the following code. When I Dim the array as a Variant it works. But when I Dim the array as Double, it generates a type mismatch error.
Can anyone shed light as to what I am doing wrong?
Thank you.
I have the following code. When I Dim the array as a Variant it works. But when I Dim the array as Double, it generates a type mismatch error.
Can anyone shed light as to what I am doing wrong?
Thank you.
Code:
Dim arrPrice as Double '<----works if Variant datatype
arrPrice = Intersect(rngPriceCheck, Columns(colPrice)) '<--type mismatch error