vb6 - Run-Time error '91' Object varaible or With Block variable not set -


i have tried code below, got forum, have vb application, if extract first time remove blanks.

if try second time, give me run-time error '91', object variable or block variable not set.

dim r range dim rows long dim long                         set r = activesheet.range("a7:w77")       rows = r.rows.count     = rows 1 step (-1)     if worksheetfunction.counta(r.rows(i)) = 0 r.rows(i).delete next 


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -