Syntax for getting value of named workbook range

B

Barb Reinhardt

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
 
T

Tom Ogilvy

Assuming the named range refers to a single cell:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top