Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default C# .net and Excel Named Ranges



Try

Range TheRange
TheRange = Workbook.Names("Calcs").RefersToRange

This assumes that the name "Calcs" refers to a range. It is possible
to have a Name that refers to a constant or formula rather than a
range.

Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Tue, 9 Dec 2008 07:20:17 -0800, Jorge Ribeiro
wrote:

Hello

I've a named range "Calcs".
I want to get an Excel.Range object that reference that particular named
range.
I could do this iterating workbook.names collection but it seems to me that
there must be another way to accomplish this.

Can you help me here?

Best regards

Jorge

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 ranges and pasting formulas with named references Dude3966 Excel Programming 2 October 8th 08 04:15 PM
VBS for excel named ranges mario Excel Programming 4 May 15th 08 10:07 PM
Named ranges scope / workbook/worksheet level named ranges- changeswith variable use... christian_spaceman Excel Programming 3 December 24th 07 01:15 PM
Copy data in named ranges to a newer version of the same template to identical ranges handstand Excel Programming 0 August 21st 06 03:51 PM
VB.Net DLL Using Excel Named Ranges ShockWave[_3_] Excel Programming 2 July 8th 04 05:54 PM


All times are GMT +1. The time now is 09:10 AM.

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"