Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5976467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:13:59+00:00 2026-05-22T21:13:59+00:00

I have to figure out a way to parse a text file in VBA

  • 0

I have to figure out a way to parse a text file in VBA this week and I was hoping I could get some guidance on how this would work.

The fileformat is similar to the example below (2 lines per relevant entry with no delimiters). Individual records are determined by the positions on the line:

005839998000017868XC9089
  002598DD930120000000000

My question is how could I tell ExcelVBA to to import characters 1-6 as an entry and 8-12 as another, etc? Then, how can I make sure that it is looking at every two lines as a related record? I then have to export each record on a line in some type of delimited file.

Any guidance on how to get started will be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:14:00+00:00Added an answer on May 22, 2026 at 9:14 pm

    Most of your question is answered in this other question Read lines from a text file but skip the first two lines

    If you end up with a line in a string, you can use the mid() to break out individual fields and the left() function to tell you what kind of line you are on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to figure this out for way to long tonight. I
So i'm trying to figure out the smartest way to do this. I have
I am trying to figure out the best way to parse this comma delimited
I have been trying to figure out a way to tag several methods from
I am trying to figure out an easy way to have a password protected
hey guys having this really simple problem but cant seem to figure out have
I have been trying to figure out why I am getting this problem and
I'm trying to figure out a way to parse out a base64 string from
I'm trying to figure out a way to parse out a base64 string from
I'm trying to figure out the best way to do this in jquery. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.