Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA UDF Userdefined function - search in partially empty fie

Hi,
I wrote a function that tries to find a text in a a range of 5 cells.
If they are all poplated it works fine.
If one of them is empty the .find command doesn't work anymore.

What can I do?
The line in my function is:
Set Reslt = Sheets("Data").Range("C5:G5").Find(s, LookAt:=xlPart)

Thanks,
Eckhard
P.S. Bob, thanks for your reply to my other post. It works perfectly. Can
you help again?

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
Excel VBA UDF Userdefined function - in which line is the function Bob Phillips Excel Programming 0 December 6th 06 11:50 AM
sumif function with partially matchin sentences Vikram Dhemare Excel Discussion (Misc queries) 2 April 25th 06 07:28 AM
Userdefined Function and recalculatiing XL 2k3 Thomas Weber Excel Programming 2 November 25th 05 10:55 AM
How to use multiple sheets with range in userdefined function. Wouter HM Excel Programming 6 February 13th 04 02:47 PM
UserDefined Function that opens another w/book Regan Excel Programming 1 September 1st 03 10:21 AM


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