Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Diane Collins   on Oct 19 In MS Office Category.

  
Question Answered By: Fabiano Ferrrari   on Oct 19

This should work

Sub testing()

Dim description
Dim A As Variant
Dim X
Dim J

A = Array("JOY", "COKE", "FANTA", "SPRITE")

For J = 0 To 3
If InStr(Range("B29").Value, A(J)) > 6 Then Exit For
Next J

description = Right(Range("Parameter!C6").Value, 3) & "-" & Range("B24").Value
& A(J)

End Sub

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on problem with Find Or get search suggestion and latest updates.


Tagged: