Finding columns count of a range
Use
Range(var1a).Columns.Count
The mistake you did was,
you declared 'val1a' but calling 'var1a'.
correct the typo and you'll be able to get that.
Use
Range(var1a).Columns.Count
The mistake you did was,
you declared 'val1a' but calling 'var1a'.
correct the typo and you'll be able to get that.