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 6326599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:07:18+00:00 2026-05-24T17:07:18+00:00

I have a file with 4 fields. A,B,C,D I want to only extract the

  • 0

I have a file with 4 fields.

A,B,C,D

I want to only extract the 4th Field and change it to “E”

Is there anyway to accomplish this?

  • 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-24T17:07:20+00:00Added an answer on May 24, 2026 at 5:07 pm

    Assuming that the values don’t contain commas, read in the file using FileSystemObject (FSO), then Split each line on commas. Change the resulting array of 4 values as needed, then join it together as a comma separated string again. When you’ve done all the changes, write the data back out to a file using FSO.

    So something like:

    Set outputFile = fso.OpenTextFile(FileName1, ForWriting, True)
    Set inputFile = fso.OpenTextFile(FileName2, ForReading)
    Do While inputFile.AtEndOfStream <> True
        arr = Split(inputFile.ReadLine, ",")
        arr(3) = "E"
        outputString = Join(arr, ",")
        outputFile.WriteLine outputString
    Loop
    

    Please note, the code is completely untested and written mostly from memory so is almost certainly not correct but just to give you an idea.

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

Sidebar

Related Questions

In the database I have a field with a .mht file. I want to
I have a webpage that has 3 file inputs. There are specific fields on
I have a file (dictionary.txt) with data field entries as follows - ABC This
I have an XML configuration file, i want to pull one of the fields
I have a file with fields separated by pipe characters and I want to
I have a csv file where amount and quantity fields are present in each
I have a CSV file that I'm working with, and all the fields are
I have a upload text file field, and with it I plan to save
I have a HTML file upload field from which I'm reading the file name
I have a file with single field like so; scaffold10017|size24957-5236 scaffold10017|size24957-5236 scaffold10017|size24957-5236 scaffold10017|size24957-7124 scaffold10076|size19532-3212

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.