vba - how to use a constant as a range index -


i want use construct

option explicit  public const celllocation string = "5, 7"  ... .  data = range1(celllocation ).value 

my code works data = range1( 5, 7 ).value

but not data = range1( celllocation ).value

how can specify cell location constant

not sure can't use "offset" here.

set celllocation = cells(5,7) 

Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -