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


hello,

I've got an interesting problem. I am searching for a string in a
macro. e.g. animal
but the variable is set as Animal. How can i make sure case sensitivety
is not an issue for a variable.

Regards,
Niek


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default caption sensitivity

One way is to use the UCASE function to convert your
searched string to upper case. For example

For x = 1 to 10

If Ucase(cells(x,1).value) = "ANIMAL" Then
... do something exciting ...
End if

Next X

Cheers, Pete

-----Original Message-----

hello,

I've got an interesting problem. I am searching for a

string in a
macro. e.g. animal
but the variable is set as Animal. How can i make sure

case sensitivety
is not an issue for a variable.

Regards,
Niek


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default caption sensitivity

Or put Option Compare Text at top of module above any procedures.

Gord Dibben XL2002

On Mon, 10 Nov 2003 00:54:26 -0800, "Pete McCosh" wrote:

One way is to use the UCASE function to convert your
searched string to upper case. For example

For x = 1 to 10

If Ucase(cells(x,1).value) = "ANIMAL" Then
... do something exciting ...
End if

Next X

Cheers, Pete

-----Original Message-----

hello,

I've got an interesting problem. I am searching for a

string in a
macro. e.g. animal
but the variable is set as Animal. How can i make sure

case sensitivety
is not an issue for a variable.

Regards,
Niek


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

.


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
Sensitivity analysis Alex Chung New Users to Excel 2 June 26th 12 08:15 PM
Excel Sensitivity (What If) analysis jordanpcpre Charts and Charting in Excel 1 May 21st 08 06:22 PM
Sensitivity Analysis to 2 variables steve-o Excel Discussion (Misc queries) 1 August 10th 07 08:38 PM
Mouse Sensitivity Erinayn Excel Discussion (Misc queries) 3 November 8th 06 12:21 AM
Sensitivity analysis PaulHelyer Excel Worksheet Functions 1 March 2nd 06 11:00 PM


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