Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Need a property that will give me true if a value is close

Like should do it. For Example

If Activecell.Value Like "*Price*" Then
....

--

HTH

RP
(remove nothere from the email address if mailing direct)


"havocdragon" wrote in message
...
Ok so heres what im saying:

Lets say I have a value in a cell "Price"

If I put a value of "If activecell = "Price" then"

This will be a valid statement and do what I tell it to afterwards.

However,
lets say the value in the cell is " Price" or "$Price" how would I

make a
statment saying something to the effect of "If activecell = similar to
"Price" then"




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Need a property that will give me true if a value is close

Haven't seen you in a few days. As always I am going to be difficult and ask
if one way is faster than the other... :-)

"Bob Phillips" wrote:

Like should do it. For Example

If Activecell.Value Like "*Price*" Then
....

--

HTH

RP
(remove nothere from the email address if mailing direct)


"havocdragon" wrote in message
...
Ok so heres what im saying:

Lets say I have a value in a cell "Price"

If I put a value of "If activecell = "Price" then"

This will be a valid statement and do what I tell it to afterwards.

However,
lets say the value in the cell is " Price" or "$Price" how would I

make a
statment saying something to the effect of "If activecell = similar to
"Price" then"





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Need a property that will give me true if a value is close

Hi Jim,

Been charging around France for the past ten days,, from the Northern ports,
to the High Alps, to the sunny South-West and back. Far too hectic to hit
the groups ...

In all my tests, as I expected, Instr tends to be faster, by about 2 times .
So where speed is important, Instr it is, but otherwise I think Like is more
intuitive, and reads better.

Regards

Bob

"Jim Thomlinson" wrote in message
...
Haven't seen you in a few days. As always I am going to be difficult and

ask
if one way is faster than the other... :-)

"Bob Phillips" wrote:

Like should do it. For Example

If Activecell.Value Like "*Price*" Then
....

--

HTH

RP
(remove nothere from the email address if mailing direct)


"havocdragon" wrote in message
...
Ok so heres what im saying:

Lets say I have a value in a cell "Price"

If I put a value of "If activecell = "Price" then"

This will be a valid statement and do what I tell it to afterwards.

However,
lets say the value in the cell is " Price" or "$Price" how would I

make a
statment saying something to the effect of "If activecell = similar to
"Price" then"







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
Does a HasDependents = True property exist? Dave O Excel Discussion (Misc queries) 4 April 13th 10 09:32 PM
how excel calculates the major units on an axis when MajorUnitIsAuto property set to true [email protected] Charts and Charting in Excel 1 May 15th 07 04:06 PM
how excel calculates the major units on an axis when MajorUnitIsAuto property set to true [email protected] Charts and Charting in Excel 0 May 15th 07 08:39 AM
how to set pivotitem.visible property to true kanan Excel Programming 0 February 25th 04 08:06 PM
How can I set PivotItem.Visible property to True? yumi Excel Programming 2 February 19th 04 11:51 AM


All times are GMT +1. The time now is 03:13 PM.

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"