+ Reply to Thread
Results 1 to 8 of 8

How to read double quoted strings

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    How to read double quoted strings

    Hello
    This macro found in the same forum extracts the double quoted strings in a long string and copies them vertically.
    Please Login or Register  to view this content.
    How can I get
    1) Count of double quoted strings
    2) Have them in one row separated by a space
    3) May we create another array that contains only the double quoted strings (so that some other operations can be applied on them)?

    Hope it makes sense.

    Best Regards
    Imran Bhatti
    Last edited by ImranBhatti; 03-08-2017 at 12:46 PM. Reason: Code tags applied.
    Teach me Excel VBA

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: How to read double quoted strings

    Hi !

    No need a loop …

    To count use UBound function (to see in VBA inner help).

    For « one row separated by a space » use Join function.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: How to read double quoted strings

    1 and 2:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: How to read double quoted strings

    For 3:

    Please Login or Register  to view this content.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: How to read double quoted strings

    Formula version to get result in one cell:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: How to read double quoted strings

    2 is ok
    1 needs to be in one row separated by a space
    like
    "a" "b" "c"
    I used row wrongly I think..it must say in one cell

  7. #7
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: How to read double quoted strings

    Quote Originally Posted by TMS View Post
    Formula version to get result in one cell:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Although I needed a VBA solution but the formula is not doing as expected.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: How to read double quoted strings

    Post a sample workbook with some typical data and expected results.

+ 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] How to extract all double quoted strings from a major string
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-09-2017, 01:17 AM
  2. Always need to double click on the email to mark it as read
    By DURGESH88 in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 12-16-2014, 03:41 AM
  3. Read strings from 2 reference text files
    By scottich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2014, 11:57 AM
  4. Values in textbox are read as strings so I can't add them, how do i solve this?
    By kjy1989 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2014, 04:50 AM
  5. Read a Range of 5 cells of strings and assign value of 1-5
    By BeefNoodleSoup in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2012, 12:15 PM
  6. macro to Read Data Strings
    By mithil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-04-2010, 06:25 PM
  7. [SOLVED] Including double-quotes in strings
    By Hall in forum Excel General
    Replies: 2
    Last Post: 08-18-2005, 11:05 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