[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

Excel Macro is missing some strings.

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
obad62
Asked:
obad62
  • 3
  • 3
1 Solution
 
andrewssd3Commented:
Your vba project is password protected - could you free it up and repost pls?
0
 
obad62Author Commented:
macro password :  pingo000
0
 
obad62Author Commented:
no-pass version
Master-Filtering.xlsm
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
andrewssd3Commented:
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
 
obad62Author Commented:
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
 
andrewssd3Commented:
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.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now