Create .dat file from excel data for payment upload

sailingmike49

New Member
Joined
Mar 22, 2024
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I am trying to get an excel sheet of payment data for a club into the database and need to use a macro to create the .dat output for the database upload.
The .dat output has a header like this below:
REQUIRED OUTPUT TO .dat file via macro
Header
01HSPAY001PAYif Debit amount - show totalIf credit amount show totalsum of total receipts(cedit minus debit)

Then the body would have rows below like this - there could be up to a hundred rows

02HSPAY0012024987651PAYCARD120.00DB02/03/2023
This is where all rows below header have the "02" preceding the HSPAY001 batch name concatenated with Receipt_NoPayment credit and payment method are concatenatedAmounts would display here "-" for a creditCONCATENATED Posted by and uploaded date
 

Attachments

  • Payment macro file fields.JPG
    Payment macro file fields.JPG
    118.2 KB · Views: 4

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
better view of the fields in the excel sheet
 

Attachments

  • Payment macro file fields.JPG
    Payment macro file fields.JPG
    134.6 KB · Views: 2
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,987
Members
449,093
Latest member
Mr Hughes

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