Parse return text string to display in table format in VBA

usrefromNJ

New Member
Joined
Feb 24, 2011
Messages
1
Hello Everybody,
I am working on a project and very new in Excel VBA.
I do send .csv file (with column header and row values)to another server via http POST. I get result back in following format


Begin result

Begin DETAIL
Period = "1 "
ExpectedInterest = 9029892.75482713
Interest = 8877502.86254044
ExpectedPrincipal = 1639835.67534955
End
Begin DETAIL
Period = "2"
ExpectedInterest = 9029892.75482713
Interest = 8877502.86254044
ExpectedPrincipal = 1639835.67534955
End



.......
End

This result is coming as a string to me (it is not line delimited).
I am able to capture the result

How can I parse this output and display in the following table format
on my excel sheet using VBA or anyother technique

period ExpectedInterest Interest ExpectedPrincipal
1 value value value
2 value value value

Please please let me know.

Thanks in advance
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You say that the result is not line delimited, but you are showing us data that is line delimited. What exactly do you want, and what is the data that you want hints for processing for?
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,853
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top