Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mohamadmh

  1. mohamadmh

    Improve speed of For i Loop ? Is is possible to use arrays

    Thanks SkipVought and understand. Appreciate you posting reply.
  2. mohamadmh

    Improve speed of For i Loop ? Is is possible to use arrays

    thank you again combo, but not an expert and would struggle to complete. Thank you again for your help
  3. mohamadmh

    Improve speed of For i Loop ? Is is possible to use arrays

    Thank you combo for the suggestions. Could you help modify the code?
  4. mohamadmh

    Find Position Number of word in string

    Found a solution. Sharing in case someone else needs similar function. Function wordPosition(sentence As String, searchWord As String) As Long Dim words As Variant Dim i As Long words = Split(sentence, ",") For i = LBound(words, 1) To UBound(words, 1) If words(i) =...
  5. mohamadmh

    Find Position Number of word in string

    Hi all, Thank you in advance for your help. In cell A2 I have: Field3,Field8,Field9,Field10 In cell B2 I would like to get: 2 (the position of the 2 word Field8 in string) I tried using InStr in UDF In cell B2 I am using below function: FindWordPosition(A2,"Field8") result of function in...
  6. mohamadmh

    Find and Replace Array UDF issue

    Thanks everyone this is very helpful
  7. mohamadmh

    Find and Replace Array UDF issue

    Thank you Andy! It works great. Appreciate your help!
  8. mohamadmh

    Find and Replace Array UDF issue

    Hi Andy, Understood, apologies for not following. Yes, ""ID ,Type, ISIN" is a part of your UDF and will ALWAYS be a part of your outcome if in Cell A1 contains one of these items "Field 3, Field 4, Field 8, Field 9, Field 10
  9. mohamadmh

    Find and Replace Array UDF issue

    Hi Andy, i am using the following UDF, but it is not replacing all values only one Function Replace3(expression As String) As String Dim strWhat As String, strRep As String Dim arrWhat As Variant, arrRep As Variant Dim i As Long On Error GoTo Replace3_Error strWhat =...
  10. mohamadmh

    Find and Replace Array UDF issue

    Hi Andy, Thank you for your response. Apologies for not being clear: In Cell A1 I Have: Field 3, Field 4, Field 8, Field 9, Field 10 In Cell B1 I would like to get: ID, Type, ISIN, Date, Field 10 I want to only replace a subset of fields in cell not all. Hope that is clearer. Thank you in...
  11. mohamadmh

    Find and Replace Array UDF issue

    Hi all, Thank you in advance for your help. I am working on a function in cell B to find and replace text in cell A. I still need cell A is a field I and cell B is a classification of that ID. The UDF I have only replace 1 (the last string in example below Date) of the three strings I want...
  12. mohamadmh

    Loop through column a tricky one

    Hi all, Thank you for your feedback. Apologies I was not very specific. I need help with writing the VBA code. Thank you again for your input and feedback.
  13. mohamadmh

    Loop through column a tricky one

    Hi All, Stuck on this issue. Still learning VBA. Would really appreciate any help.
  14. mohamadmh

    Loop through column a tricky one

    Thnks for your input combo. Def need help with the code.

Part and Inventory Search

Back
Top