I cannot get this one to execute, please help me execute this statement. Its not displaying AAAAA if it compares the string B3000.
Any help would be appreciated.![]()
Please Login or Register to view this content.
I cannot get this one to execute, please help me execute this statement. Its not displaying AAAAA if it compares the string B3000.
Any help would be appreciated.![]()
Please Login or Register to view this content.
There is a comma in your string comparison "B3000:," hence it would not match to string "B3000" ? That could be the problem, otherwise, you should provide a more complete chunk of your code, there are 2 "If"'s right at the start of this snippet.
Sorry, for the If's
There is just one IF and also the value which is to be displayed is as follows:
Audit: B3000:,B3001:,.....
Last edited by irfanparbatani; 08-22-2013 at 08:54 PM.
Show the part where you are setting the value to Audit ?
I feel that Audit contains whole data B3000:,B3001:,..... in this manner. So you need to split this into array and then check for the value.
________________________________________________________________________________________________
if something has helped please click
I have not failed. I've just found 10,000 ways that won't work.
Thomas A. Edison
Hi
Below is the audit code:
Thanks![]()
Please Login or Register to view this content.
So, let's say fldArray(UBound(fldArray)) contains only "B3000:,B3001:,",
InStr(Audit, ":") would return 6.
This linewould then translate into![]()
Please Login or Register to view this content.
which would be equals to "B3000". Hence comparison with "B3000:," would return a False![]()
Please Login or Register to view this content.
So how would we go about comparing it, cuz I get the output in a bulkfile(text file) and got to compare it before it writes to bulkfile.
I suggest that you upload a dummy sample file, showing the data you are working with and what your expected answer would be. That way, members dont have to guess at what you are working with!
To attach a file to your post,
click advanced (next to quick post),
scroll down until you see "manage file",
click that and select "add files" (top right corner).
click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"
Once the upload is completed the file name will appear below the input boxes in this window.
You can then close the window to return to the new post screen.
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks