+ Reply to Thread
Results 1 to 3 of 3

Converting Pipe Delimited Data String into Seperate columns using VBA Macro

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    Florida, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Lightbulb Converting Pipe Delimited Data String into Seperate columns using VBA Macro

    Here's my quandry!

    I have a string of data coming from a SQL Server data connection into my workbook. The value in the column is a text string that is pipe delimited. I need a macro to parse the data from that column into applicable separate columns. I would typically use text to columns for this and parse it out manually... but the tool I'm creating is one of the automated variety, so that will not suffice for this application. I need it to do this automatically when the data connection refreshes.

    U:U AQ AR AS AT AU AV
    to
    Produce|Fruit|apple|banana|cherry|date Produce Fruit apple banana cherry date



    Anyone have an idea how to cure this woe?

    RN
    Last edited by 6StringJazzer; 03-06-2014 at 04:31 PM. Reason: title typo

  2. #2
    Registered User
    Join Date
    03-06-2014
    Location
    Florida, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Converting Pipe Delimited Data String into Seperate columns using VBA Marco

    sorry my example ^ didn't post as expected to show configuration I'm looking to achieve..

  3. #3
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Converting Pipe Delimited Data String into Seperate columns using VBA Macro

    You could use texttocolumns via VBA or this will work too...

    Please Login or Register  to view this content.
    Just change the value (shown in red) in this line to change where the values are shown..

    For example .. if you changed the "2" to be "4" then the values would start in Column D (instead of column A)..
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Pipe delimited vs comma delimited problem
    By theletterh in forum Excel General
    Replies: 4
    Last Post: 01-23-2013, 07:27 PM
  2. [SOLVED] Concatenating cells where one contains Pipe delimited data
    By Acedge in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-04-2012, 12:25 PM
  3. converting pipe delimited text to excel
    By dealofsd in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 06-11-2012, 09:55 AM
  4. Making pipe delimited columns
    By Titia in forum Excel General
    Replies: 2
    Last Post: 01-31-2012, 10:29 AM
  5. Pipe delimited adding spaces for numeric columns
    By dntel123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2011, 06:57 AM

Tags for this Thread

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