vb.net - Type Mismatch Error, declaring Range Variable in Excel VBA -
this should simple fix, i've searched , searched , can't figure out wrong.
i'm getting "run-time error 13: type mismatch":
dim rng range dim endrw integer, endcol integer endrw = 30 endcol = 10 set rng = sheets("sheet1").range(sheets("sheet1").cells(2,3),sheets("sheet1").cells(endrw,endcol))
^^^ last line causing error ^^^^
Comments
Post a Comment