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

I have the following to test if the input from inputbox contains the name
"Jacqueline" or "Mary". However it returns the message "Unable to get the OR
property of the worksheet function class". Anyone know what is wrong?

If Name Like WorksheetFunction.Or("*Jacqueline*", "*Mary*") Then


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default WorksheetFunction OR

If Name Like "*Jacqueline*" OR _
Name Like "*Mary*"Then


although I don't think I would use Name as a variable

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"linglc" wrote in message
...
I have the following to test if the input from inputbox contains the name
"Jacqueline" or "Mary". However it returns the message "Unable to get the
OR
property of the worksheet function class". Anyone know what is wrong?

If Name Like WorksheetFunction.Or("*Jacqueline*", "*Mary*") 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
WorksheetFunction help Ayo Excel Discussion (Misc queries) 2 July 20th 08 10:48 PM
worksheetfunction GMet Excel Programming 2 September 27th 04 05:36 PM
Max WorksheetFunction solo Excel Programming 4 February 23rd 04 10:17 PM
WorkSheetFunction.CountIf & WorkSheetFunction.SumIf with 2 conditions? Etien[_2_] Excel Programming 3 January 13th 04 04:07 PM
WorksheetFunction Mike Fogleman Excel Programming 2 January 1st 04 11:17 PM


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