Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Defined name range


Hi,

If I have defined a name for a range (Name Defined ) in excel, ho
would I call that Name on VBA. For e.g.
Defined name range in excel = DataRange
If I use the code
Range(DataRange).Select
This give me object error.

BR,
Bil

--
Billabon
-----------------------------------------------------------------------
Billabong's Profile: http://www.excelforum.com/member.php...fo&userid=1090
View this thread: http://www.excelforum.com/showthread.php?threadid=26596

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Defined name range

Range("DataRange").Select

or

Dim sRangeName AS String
sRangeName = "DataRange"
Range(sRangeName).Select

On Sun, 3 Oct 2004 20:57:48 -0500, Billabong
wrote:


Hi,

If I have defined a name for a range (Name Defined ) in excel, how
would I call that Name on VBA. For e.g.
Defined name range in excel = DataRange
If I use the code
Range(DataRange).Select
This give me object error.

BR,
Bill


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Defined name range

Range("DataRange").Select

--
Regards,
Tom Ogilvy

"Billabong" wrote in message
...

Hi,

If I have defined a name for a range (Name Defined ) in excel, how
would I call that Name on VBA. For e.g.
Defined name range in excel = DataRange
If I use the code
Range(DataRange).Select
This give me object error.

BR,
Bill


--
Billabong
------------------------------------------------------------------------
Billabong's Profile:

http://www.excelforum.com/member.php...o&userid=10904
View this thread: http://www.excelforum.com/showthread...hreadid=265969



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Defined name range


range("datarange").selec

--
duan
-----------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...fo&userid=1162
View this thread: http://www.excelforum.com/showthread.php?threadid=26596

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
VB pre-defined range ? Daniel Charts and Charting in Excel 3 June 13th 07 11:40 PM
Name defined Range - Copy? John Buckley Excel Discussion (Misc queries) 1 August 1st 06 02:36 AM
How can I see defined name range? smart.daisy Excel Discussion (Misc queries) 2 March 6th 06 03:52 PM
Defined range problem Pat Excel Discussion (Misc queries) 8 January 17th 05 11:25 AM
Defined range difficulty Pat Excel Discussion (Misc queries) 7 January 16th 05 09:52 PM


All times are GMT +1. The time now is 12:03 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"