Hello all,
I am trying to write vb code within an existing macro, that writes to and replaces a simple text file named benefit.txt that will have ^ for the field qualifier and , for the field deliminator. There seems to be a lot of info out there but nothing I found pertains to my needs and I'm not even sure where to start. I found an Excel Add-in that worked pretty good but not perfect and I really wanted to automate this as much as possible.
^239309^,^Doe, John K^,^17.16^
^239290^,^Banion, Michael P^,^7.41^
^293982^,^Brickland, Eric J^,^17.60^
^239352^,^Carlton, Pam E^,^183.70^
The data would be from the Code (General formatting), Employee (General formatting), & Owed Employee (Accounting formatting) columns from an Excel 2003 tab called Summary.
The data always starts on row 6 and number of rows can change each time the macro is run. The Owed Employee cells have a formula that uses defined names. Attached is a sample spreadsheet.
Any help or direction would be greatly appreciated. I'm not very good with vb and am really spinning my wheels on this.
I am trying to write vb code within an existing macro, that writes to and replaces a simple text file named benefit.txt that will have ^ for the field qualifier and , for the field deliminator. There seems to be a lot of info out there but nothing I found pertains to my needs and I'm not even sure where to start. I found an Excel Add-in that worked pretty good but not perfect and I really wanted to automate this as much as possible.
^239309^,^Doe, John K^,^17.16^
^239290^,^Banion, Michael P^,^7.41^
^293982^,^Brickland, Eric J^,^17.60^
^239352^,^Carlton, Pam E^,^183.70^
The data would be from the Code (General formatting), Employee (General formatting), & Owed Employee (Accounting formatting) columns from an Excel 2003 tab called Summary.
The data always starts on row 6 and number of rows can change each time the macro is run. The Owed Employee cells have a formula that uses defined names. Attached is a sample spreadsheet.
Any help or direction would be greatly appreciated. I'm not very good with vb and am really spinning my wheels on this.