+ Reply to Thread
Results 1 to 3 of 3

VBA for text processing?

Hybrid View

  1. #1
    Registered User
    Join Date
    12-06-2022
    Location
    U.S.
    MS-Off Ver
    97
    Posts
    5

    VBA for text processing?

    Can VBA be used for processing/cleanup of plain text data, and is it reasonably well suited for that? I'm currently learning VBA and don't have the time/inclination to learn Python or Perl, as programming is not my primary interest. I like the fact that VBA comes with Office, and I'd like to use that if possible.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: VBA for text processing?

    VBA can work with text. It has functions like MID, LEFT, RIGHT, LEN and LIKE to match regular expressions. SPLIT comes in handy to split strings based on a delimiter. You can also program Find and Replace. It would probably be at least as difficult to program what you want to do as PERL and in some ways maybe more.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: VBA for text processing?

    I had some text reports from an engineering program. I had to extract data, format data, put some data in database and produce a new report. I originally did it in VBA. I redid it in Ruby. Ruby was about 20X faster and much shorter. It also allowed me to run it on a Unix system and not burden my computer.

+ 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. Processing a sting of text
    By HDeuce in forum Excel General
    Replies: 6
    Last Post: 09-09-2016, 11:05 AM
  2. import text from email message into Excel for processing
    By ghladik in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 09-06-2014, 03:33 PM
  3. Sheet-related processing causes Excel VBA Userform to stop processing Tab/Enter
    By Joaquin M Lopez Muno in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-22-2014, 03:02 PM
  4. Reduce processing time for processing multiple excel sheets
    By rexer231 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2014, 09:25 AM
  5. VBA text processing in Excel 2003
    By SueNeedsHelp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2010, 01:59 PM
  6. Text processing in excel
    By freaksareus in forum Excel General
    Replies: 7
    Last Post: 01-06-2009, 09:24 AM
  7. processing text question
    By thatguy in forum Excel General
    Replies: 4
    Last Post: 04-09-2008, 05:22 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