debugging - Excel VBA: 'excel vba run-time error 1004' application-defined or object-defined error -
i have line in module , keeps spitting run-time error 1004 when try , run it.
can help?
i'm guessing it's how range referenced, i'm not sure. new me.
rngfirst = thisworkbook.worksheets("still in progress").range("g" & 1 & ":g" & lw)
many in advance
this works me:
sub button1_click() dim rngfirst range dim int1 integer int1 = 2 set rngfirst = thisworkbook.worksheets("sheet1").range("g" & 1 & ":g" & int1) rngfirst.select end sub
i getting same error until used dim , set.
Comments
Post a Comment