LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Adding an series of "If" statement's to test for values

I have a comma delimited file that I will be importing to a blank sheet
then transferring data to certain cells, which I can handle but I need to

add an "If statement" and I'm not sure how to do it, basically what I want
to do is this;

In the comma delimited file in the third position there are some words like;

Bull nose
Center Drill
Taper Mill

And a few others, and what I want to do is test them to see if they match
the names
of the image files in the directory /GIFS

it looks to me like I could use something simular to the following;

if value = "bull nose", import picture named "bull nose.gif" from sub
directory /GIFS
if value = "center drill", import picture named "center drill.gif" from
sub directory /GIFS
if value = "Taper Mill", import picture named "taper mill.gif" from sub
directory /GIFS

and so on down thru the list of names to check for

Lets say I have 18 words or phrases, I would have 18 matching image files
that I want to
run through an if statement or 18 if statements I guess.

just not sure how to formulate the if statement to test the value


Any advice will be greatly appreciated

TIA

Jeff White




 
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
Adding values in first "X" number of rows dynamically MattyP Excel Worksheet Functions 3 April 15th 09 06:13 PM
How do I test values in 2 different columns in a "sumif" formula? SteveS Excel Discussion (Misc queries) 8 June 3rd 07 11:27 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
Debug.Print "Test " vbCodeLineNumber & ": " & varName TommySzalapski[_32_] Excel Programming 1 August 2nd 05 05:17 PM
Looking for VB code to test for "RING" , "BUSY" disconnects or other signals BruceJ[_2_] Excel Programming 3 November 20th 03 01:55 AM


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