sanlike

New Member
Joined
Sep 24, 2008
Messages
3
i have a excel file which I want in .txt output.
In EXCEL sheet1 A1 contains number, B1 contains name, C1 contains Amount, D1 contains particulars.

When I run Macro in text file to be created. In text out put I want spacing for A1 data is 14 {the account number varies from 5 digit to 14 digit} B1 30 (name characters may be from 5 to 25), C1 15 & D1 10
EXAMPLE
In Excel
A B C D
1 7895689 SHANKAR 125.90 CASH
2 2568698522 RAJA 12565.00 CHEQUE
3 256 WILLIAM RAJASHEKAR 256865.55 CREDIT CARD

IN TEXT FILE THE OUT PUT SHOULD BE

7895689 SHANKAR 12590CASH
2568698522 RAJA 12565CHEQUE
256 WILLIAM RAJASHEKAR 25686555CREDIT CARD

:ROFLMAO::)
 
Last edited:

Some videos you may like

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Greg Truby

MrExcel MVP
Joined
Jun 19, 2002
Messages
10,013
No estoy seguro porqué colocó la presente en el foro para idiomas extranjeras. La voy a mover al foro de inglés.
 

Watch MrExcel Video

Forum statistics

Threads
1,095,205
Messages
5,443,015
Members
405,212
Latest member
Arnie58

This Week's Hot Topics

  • Copy entire row if CountA <>0 to another sheet
    [B]I want to copy entire row if CountA <>0 for column J7:AM7 (headers on J6:AM6) and so on till the last used cell is column D and paste the...
  • Select last used Row in Table
    I have created a Table in a Worksheet which is locked to prevent user errors and protect formula. Some of the cells require freetext entries which...
  • excel workbook: do not allow certain file name
    Hello all, Don't think this has ever been asked before, but how do I restrict file save [Before_Save Event] if the name of the file being saved...
  • fixing problem autofilter
    hello i need help about my code when i search by code in textbox it doesn't show anything this is my data [ATTACH type="full"...
  • “Weight”
    Hi, i’ve got a long sheet filled with weights such as kg,g,L & ml. i can build a formula to convert kg into g and liter into ml. How ever, my...
  • How to capitalize everything before a certain character?
    In column A, I have some text: Hello good day.mp3 Hello good day.flac etc. I'd like to capitalize everything before the period. I don't need the...
Top