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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -