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

I can't get my macro to recognize names i've given to cells i.e.

If Sheets(I).Names("Quote_Status") = "Closed" Then

it won't recognize Quote_Status as the name of a cell even though there is a
cell on the sheet specified (variable in this case) with that name.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default recognizing names

Maybe...

if worksheets(i).range("quote_status").value = "Closed" then



vegetassj3 wrote:

I can't get my macro to recognize names i've given to cells i.e.

If Sheets(I).Names("Quote_Status") = "Closed" Then

it won't recognize Quote_Status as the name of a cell even though there is a
cell on the sheet specified (variable in this case) with that name.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default recognizing names

No, i've tried changing sheets to worksheets; names to range; .value and
..text and still no luck

"Dave Peterson" wrote:

Maybe...

if worksheets(i).range("quote_status").value = "Closed" then



vegetassj3 wrote:

I can't get my macro to recognize names i've given to cells i.e.

If Sheets(I).Names("Quote_Status") = "Closed" Then

it won't recognize Quote_Status as the name of a cell even though there is a
cell on the sheet specified (variable in this case) with that name.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default recognizing names

I'd guess that
the range isn't named what you think it is
or the name doesn't point to what you think it does.

Get a copy of Jan Karel Pieterse's (with Charles Williams and Matthew Henson)
Name Manager:

You can find it at:
NameManager.Zip from http://www.oaltd.co.uk/mvp

It may help you debug the problem.


vegetassj3 wrote:

No, i've tried changing sheets to worksheets; names to range; .value and
.text and still no luck

"Dave Peterson" wrote:

Maybe...

if worksheets(i).range("quote_status").value = "Closed" then



vegetassj3 wrote:

I can't get my macro to recognize names i've given to cells i.e.

If Sheets(I).Names("Quote_Status") = "Closed" Then

it won't recognize Quote_Status as the name of a cell even though there is a
cell on the sheet specified (variable in this case) with that name.


--

Dave Peterson


--

Dave Peterson
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
Recognizing data george Excel Worksheet Functions 1 March 5th 08 10:28 AM
Recognizing *.xls files Nevsky Excel Discussion (Misc queries) 6 October 14th 07 03:05 AM
Recognizing #N/A nebb Excel Worksheet Functions 1 October 19th 05 12:56 AM
Recognizing Numbers or names as duplicates texansgal Excel Worksheet Functions 1 August 8th 05 08:31 PM
Not recognizing a Const Dan T[_3_] Excel Programming 7 July 18th 04 12:45 AM


All times are GMT +1. The time now is 06:56 AM.

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

About Us

"It's about Microsoft Excel"