excel vba - use a saved range from a RefEDit -


in macro, there refedit field. it's value saved futur use in excel cell, next time macro used not necessary select again range.

the "range" saved has form : "tab name'!$b$3:$j$21". not recognized in range (range("tab name'!$b$3:$j$21")). best way used it? necessary split tab name , range cells?

thanks

it depends on going range:
a) select if in same sheet:

range("'tab name'!$b$3:$j$21").select  

b) select not in 'tab name' sheet:

application.goto evaluate("'tab name'!$b$3:$j$21") 

you more tricks evaluate
c) name of sheet:

debug.print  evaluate("'tab name'!$b$3:$j$21").parent.name 

and on...


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -