Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Syntax for getting value of named workbook range

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Syntax for getting value of named workbook range

Assuming the named range refers to a single cell:

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

--
Regards,
Tom Ogilvy


"Barb Reinhardt" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Named Range From One Workbook Used in Validation Drop Down in 2nd Workbook Minitman Excel Discussion (Misc queries) 3 August 19th 08 05:30 PM
Workbook named range not seen by ADO when workbook closed Tim Lund[_2_] Excel Programming 2 March 16th 07 08:59 AM
syntax to go to a named range Ben Excel Programming 3 November 30th 05 01:30 PM
Named Range in ANOTHER workbook frtklau Excel Discussion (Misc queries) 0 April 15th 05 05:42 PM
Named Range in another workbook Jon C Excel Worksheet Functions 2 February 17th 05 01:07 PM


All times are GMT +1. The time now is 01:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"