Results 1 to 3 of 3

How to Split a string and put each word in text box

Threaded View

MeSH16 How to Split a string and put... 09-12-2015, 12:04 AM
GC Excel Re: How to Split a string and... 09-12-2015, 12:10 AM
MeSH16 Re: How to Split a string and... 09-12-2015, 12:38 AM
  1. #1
    Registered User
    Join Date
    09-06-2014
    Location
    Philippines
    MS-Off Ver
    MS Office 2010
    Posts
    23

    How to Split a string and put each word in text box

    Good day everyone!

    As the title said


    just refer on this pic

    Untitled.png

    when I push the button it will split the string

    i have found the code here but the problem is I don't know how will I put the text on each textbox

            Dim optrName As String
            Dim splitName() As String
            optrName = rsProfile.Fields("optr_name").Value
            splitName() = Split(optrName, ", ")
            For i = LBound(splitName) To UBound(splitName)
                optrName = optrName & vbNewLine & "Part No. " & i & " - " & splitName(i)
            Next i
            MsgBox optrName
    is there other way around to split the string?
    Last edited by MeSH16; 09-12-2015 at 04:04 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Find word in text string and return word adjacent to the left
    By eadamquinn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-06-2014, 03:22 PM
  2. Replies: 2
    Last Post: 04-09-2014, 11:48 AM
  3. [SOLVED] Split into 2 text string
    By rizmomin in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-31-2014, 10:01 AM
  4. Advanced Split Function: Need to pull text string in quotes, within a text string
    By Zamboni in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2013, 04:38 PM
  5. Replies: 2
    Last Post: 08-05-2013, 04:45 PM
  6. [SOLVED] How to conditionally insert text string into a line after first word using Word 2010
    By staggers47 in forum Word Formatting & General
    Replies: 5
    Last Post: 12-08-2012, 11:07 AM
  7. UDF to Split Text String
    By cdrhodes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2010, 03:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1