?
Solved

Excel Macro is missing some strings.

Posted on 2011-09-10
6
Medium Priority
?
285 Views
Last Modified: 2012-05-12
Hi Experts:

I have a macro attched fetching data from txt file, it works mostly fine except some issues:
After I checked manully the txt total of accounts is not matching;
1- Follwing accounts are missed I don't know why: account are
     [ 798026 - 798039 - 798020 - 798040 - 798016 - 798017 - 208028 ].
2- in some customers if there is FX line should be add to TOTAL FINANCED, the issue is macro missing that so    GRAND TOTAL becomes wrong.


Thanx.



<<byundt removed MatLab and VBScript Zones 9-10-11>>



Master-Filtering.xlsm
CBG-Aug--11.txt
0
Comment
Question by:obad62
[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
  • 3
6 Comments
 
LVL 17

Expert Comment

by:andrewssd3
ID: 36516445
Your vba project is password protected - could you free it up and repost pls?
0
 

Author Comment

by:obad62
ID: 36517237
macro password :  pingo000
0
 

Author Comment

by:obad62
ID: 36518886
no-pass version
Master-Filtering.xlsm
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 17

Expert Comment

by:andrewssd3
ID: 36522062
Hi

The problem with the missing accounts is that the account name in each case began with a number, and the macro was only looking for alphabetic characters.  You can fix this by changing in clsOfficers the line the identifies the account as follows:
        'ElseIf TheLine Like "* ###### [A-Z]*" Then
        ' andrewssd3 replace this line
        ElseIf TheLine Like "* ###### [A-Z0-9]*" Then

Open in new window


The exception is 208028 which is missed because its account name is all blanks.  This is more difficult to pick up - can you confirm that you need it?

I don't understand exactly what you require with the FX line - there are two different sorts of FX lines in the file - can you please explain exactly what you need to identify, and which total they need to be added to?

Thanks

Stuart
0
 

Author Comment

by:obad62
ID: 36523302
Dear Stuart,

Many thanks for your reply.

1- Missing account is solved, 208028 issue i asked IT to add the name and worked fine.

2- FX , issue ,   Yes there are 2 types of FX and I need both of them to be checked by the macro
      ( FX Spot, FX forward ) if any or both is there macro will add it to TOTAL FINANCED.

Obad

0
 
LVL 17

Accepted Solution

by:
andrewssd3 earned 2000 total points
ID: 36528069
Hi

I have made some changes to the clsOfficers Import code, which I've marked with my id as the previous people did.  I think this does what you want now.  

Stuart Master-Filtering.xlsm
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes a serious pitfall that can happen when deleting shapes using VBA.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

762 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