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

I'm working on a UDF that looks at several cell values...

if value starts with "B" in cell in column B then set variable "map"
to variable "default" if
"SHORT", "SHT" is in the cell in column G
or "G345" or "G231" is exactly in column B.

else set variable "msp" to variable 1
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Find in UDF VBA

Huh?


"caveman.savant" wrote in message
...
I'm working on a UDF that looks at several cell values...

if value starts with "B" in cell in column B then set variable "map"
to variable "default" if
"SHORT", "SHT" is in the cell in column G
or "G345" or "G231" is exactly in column B.

else set variable "msp" to variable 1



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Find in UDF VBA

A UDF must return a single value, otherwise it becomes a procedure and needs
the Sub keywork vs the Function keyword in the title line.


"caveman.savant" wrote in message
...
I'm working on a UDF that looks at several cell values...

if value starts with "B" in cell in column B then set variable "map"
to variable "default" if
"SHORT", "SHT" is in the cell in column G
or "G345" or "G231" is exactly in column B.

else set variable "msp" to variable 1



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Find in UDF VBA

Since there does not seem to be a question here I will just say... go ahead
and do that. Sounds good to me...
--
HTH...

Jim Thomlinson


"caveman.savant" wrote:

I'm working on a UDF that looks at several cell values...

if value starts with "B" in cell in column B then set variable "map"
to variable "default" if
"SHORT", "SHT" is in the cell in column G
or "G345" or "G231" is exactly in column B.

else set variable "msp" to variable 1
.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Find in UDF VBA

On Jan 18, 10:14*am, "caveman.savant"
wrote:
I'm working on a UDF that looks at several cell values...

if value starts with "B" in cell in column B then set variable "map"
to variable "default" if
*"SHORT", "SHT" is in the cell in column *G
or "G345" or "G231" is exactly in column B.

else set variable "msp" to variable 1


sorry I wasn't clear...
basically looking for a way to find "SHORT", or "SHT" in a cell value.
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
Find rows with a common item and find or highlight difference jonnybrovo815 Excel Programming 2 February 27th 08 12:56 AM
Find and Replace - delete the remainder of the text in the cell after my Find [email protected] Excel Programming 4 August 4th 07 03:39 AM
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM
find and delete text, find a 10-digit number and put it in a textbox Paul Excel Programming 3 November 16th 04 04:21 PM
backwards find function to find character in a string of text Ashleigh K. Excel Programming 1 January 14th 04 04:36 PM


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