Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old September 12th 09, 02:22 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 28
Default import data from txt file to an existing excel file

Hi !

I have an excel file for sending salary details to bank. 1st column - empl
code no., 2nd column-Account No. and 3rd column i want to fill the salary for
the month.
I am getting the salary details through a fixex width txt file every month.
I would like to have a macro which check the employee code in the excel file
and check for the same in the txt file and return the salary of the employee
in the 3rd column in the excel file.

Thanks in advance

  #2   Report Post  
Old September 12th 09, 04:15 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 9,101
Default import data from txt file to an existing excel file

The best method is to import the text file into a temporary worksheet and
then move the data from the temporary sheet to the third column on you detail
sheet. if you record a macro while importing the data using fixed width and
specify on which columns the employee no, and the salery appears on the
imported sheet, then post the recorded macro, it would make the process of
writing the macro very simple.

"shaji" wrote:

Hi !

I have an excel file for sending salary details to bank. 1st column - empl
code no., 2nd column-Account No. and 3rd column i want to fill the salary for
the month.
I am getting the salary details through a fixex width txt file every month.
I would like to have a macro which check the employee code in the excel file
and check for the same in the txt file and return the salary of the employee
in the 3rd column in the excel file.

Thanks in advance



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
import data into existing excel file Erik Excel Discussion (Misc queries) 0 January 15th 09 04:55 PM
USING DATA FROM AN EXCEL FILE TO IMPORT INTO ANOTHER Andrew Pickles Excel Worksheet Functions 1 January 17th 07 08:30 PM
How come I can't import an .svc file(Open Office) to Excel file? beezer Excel Discussion (Misc queries) 1 August 28th 06 12:05 AM
import info from outlook to existing excel file elliec Excel Worksheet Functions 3 June 29th 06 09:45 AM
Import Excel Data from another workbook or file tamato43 Excel Discussion (Misc queries) 1 February 28th 05 06:26 PM


All times are GMT +1. The time now is 02:38 PM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2004-2020 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017