Ok, here a littlte Excursion how to specify a variable:
In your "Example"
Dim grid,colvalues,v_text as object,
only grid is declared as Object - everything else becomes a Variant-
So you have to do like this:
Dim grid as Object
Dim colvalues 'can be blank!
Dim v_text as String
PS: You can switch of the Variable-Declaration:
Option Explicit Off
This should work ...