Syntax for getting value of named workbook range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a workbook I'm referring to as oWB and a named range in the workbook
called PROGRAM. It is not a worksheet range, but a workbook range. For
the life of me, I can't remember how to get the value of the named range
using VBA. Can someone assist?

Thanks,
Barb Reinhardt
 
Assuming the named range refers to a single cell:

owb.Names("PROGRAM").RefersToRange.Value
 
Back
Top