Solved

complex question

Posted on 2002-05-14
8
143 Views
Last Modified: 2010-05-02
I have "transaction file.txt" that contains cust id, trans type(W=withdrawal,i=interest, d=deposit), and amount of transaction , here is the sample:
(this file must be read line by line)
123
D
20
123
W
10
123
i
40
124
D
40
124
W
20

I also have old master file in excel, contains cust id, name and current balance, here is the sample:

cust id  name   curr balance
123      john     500
124      marry    600

what i want is to have the updated master file after being processed with transaction file (new balance=curr balance + deposit + interest - withdrawal). The code must be done in MS Excel

0
Comment
Question by:xaveboyz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 7010512
Do you have any code for this or do you expect it to be done for you? If you have a specific problem then we would be happy to help but this site is not here to get your work/homework done for you!
0
 

Author Comment

by:xaveboyz
ID: 7010950
this is not my homework
0
 
LVL 45

Accepted Solution

by:
aikimark earned 75 total points
ID: 7010994
Example:
Note -- verify all syntax with online help.

filenum = freefile
open transactionfile for input as #filenum
do
 line input #filenum, acct
 line input #filenum, action
 line input #filenum, amt
 activesheet.find "acct"
 select case action
   case "D", "I"
      activesheet.activecell = activesheet.activecell + amt
   case "W"
      activesheet.activecell = activesheet.activecell - amt
 end select
loop until eof(#filenum)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:xaveboyz
ID: 7011043
i've found the answer
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 7011128
If you found the answer, please post it here rather than delete the question. It may be valuable for other users. You can always have a moderator reduce the points on this question to zero so you don't lose out by it. Just post a zero point question in http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt with the URL of this question. Obviously you have to post your solution first.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7765534
Hi xaveboyz,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept aikimark's comment(s) as an answer.

xaveboyz, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Author Comment

by:xaveboyz
ID: 7765692
sory about the late....you've answered my question
0
 
LVL 45

Expert Comment

by:aikimark
ID: 7766407
glad I helped.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question