Named range in VBA

  • Thread starter Thread starter Cuperman007
  • Start date Start date
C

Cuperman007

Hi All,

Is it possible to access a named worksheet range in VBA? What type
would that return?

Thanks,
Mark
 
You could use:

Dim myRng as range
set myrng = thisworkbook.worksheets("somesheet").range("somename")

and it would return a range variable.

You could also go through the Names collection
dim myRng as range
set myrng = thisworkbook.names("somename").referstorange
 
Back
Top