Results 1 to 2 of 2

Thread: VBA - Split command

  1. #1
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14

    VBA - Split command

    I am importing CSV files into xl2007 --- So I read each line as one long string ---- then I use the split command to parse it into an array --- however I have Quoted text strings where the user has used a comma in the text ---- i.e. "Shoes, children" -- the code below splits these into different array elements --- how can I ensure that quoted text strings are not split.

    Thanks Rasm


    Code:
    MyString1 = Split(MyString(ii), ",")
    xl2007 - Windows 7
    xl hates the 255 number

  2. #2

Similar Threads

  1. Split Workbook into Separate Workbooks VBA
    By Admin in forum Download Center
    Replies: 12
    Last Post: 08-08-2018, 09:33 PM
  2. Replies: 5
    Last Post: 05-28-2013, 03:00 AM
  3. Replies: 2
    Last Post: 04-17-2013, 11:53 PM
  4. Print VBA cancel command not working
    By Tony in forum Excel Help
    Replies: 1
    Last Post: 02-07-2013, 07:09 PM
  5. Split Range into Multiple Columns VBA
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 3
    Last Post: 03-07-2012, 10:53 PM

Posting Permissions

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