+ Reply to Thread
Results 1 to 6 of 6

Getting WhatsApp exported data as rows using VBA

Hybrid View

  1. #1
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,924

    Re: Getting WhatsApp exported data as rows using VBA

    There are several ways to do this. 1 method is to use Workbooks.OpenText.

    You can use macro recorder to get basic syntax.

    Ex:
        Workbooks.OpenText Filename:="C:\SomeFolder\Test Input.txt", _
            Origin:=xlWindows, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _
            xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, Semicolon:=False, _
            Comma:=False, Space:=False, Other:=True, OtherChar:="-", FieldInfo:= _
            Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1)), TrailingMinusNumbers:= _
            True
    Last edited by CK76; 01-08-2019 at 12:00 PM.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  2. #2
    Registered User
    Join Date
    11-07-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Office 365
    Posts
    71

    Re: Getting WhatsApp exported data as rows using VBA

    I don't know how I could use the recorder for this? When I tried copy-paste method, it only recorded "paste".

    I have an interesting issue with too though.

    1) It opens a new file (but that can easily be fixed). I'm guessing it's in the name... OpenText

    2) More weird. If I have a line where the first message starts with capital F, it removes the F and moves the message to next column.
    e.g. 07/02/2017, 15:46 - John Doe: Fordi det er så mange fejl når jeg skriver på dansk becomes split into
    07/02/2017, 15:46 - John Doe: ordi det er så mange fejl når jeg skriver på dansk
    I have tried looking into that, but I cannot find a good reason for this behaviour?

+ 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] Reorder Exported Data
    By DHFE in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2016, 08:54 AM
  2. [SOLVED] organize the data exported
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-13-2013, 07:19 AM
  3. Excel exported data is not exactly.
    By indosta in forum Excel General
    Replies: 0
    Last Post: 05-14-2013, 09:37 AM
  4. Replies: 0
    Last Post: 05-20-2009, 05:37 AM
  5. Formatting exported DB data with IF(AND)?
    By firefiend in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-08-2007, 12:37 PM
  6. Truncated Exported Data
    By baconroll in forum Excel General
    Replies: 0
    Last Post: 04-05-2006, 07:25 AM
  7. Arabic Data is exported as ????
    By syedmoiz in forum Excel General
    Replies: 0
    Last Post: 01-11-2005, 02:01 AM

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