Hi,
I hope someone can help me. I have a spreadsheet containing user information for 2000 users that I need to export to single text file in a specific format. Each entry in the text file needs the fields in a very specific format. The fields in the sheet are (e.g):
These need to be exported to a section with the following layout, with a line between each entry. The USER_SITE is always the same, as is the USER_PROFILE.
*** DOCUMENT BOUNDARY ***
FORM=LDUSER
.USER_ID. |aXXSMI0001
.USER_FIRST_NAME. |aJohn
.USER_LAST_NAME. |aSMITH
.USER_SITE. |aXX-SITE
.USER_PROFILE. |aONLINE
.USER_CATEGORY5. |aAA-02
.USER_ADDR1_BEGIN.
.EMAIL. |ajohns@smith.com
.USER_ADDR1_END.
I'm hoping there is something like a mail merge I can use to generate this file, or failing that a VBA script but I'm at a loss to know where to start. Can anyone suggest something please?
Thanks!
I hope someone can help me. I have a spreadsheet containing user information for 2000 users that I need to export to single text file in a specific format. Each entry in the text file needs the fields in a very specific format. The fields in the sheet are (e.g):
USER_ID | USER_LAST_NAME | USER_FIRST_NAME | USER_CATEGORY5 | |
SMI0001 | SMITH | John | johns@smith.com | AA-02 |
These need to be exported to a section with the following layout, with a line between each entry. The USER_SITE is always the same, as is the USER_PROFILE.
*** DOCUMENT BOUNDARY ***
FORM=LDUSER
.USER_ID. |aXXSMI0001
.USER_FIRST_NAME. |aJohn
.USER_LAST_NAME. |aSMITH
.USER_SITE. |aXX-SITE
.USER_PROFILE. |aONLINE
.USER_CATEGORY5. |aAA-02
.USER_ADDR1_BEGIN.
.EMAIL. |ajohns@smith.com
.USER_ADDR1_END.
I'm hoping there is something like a mail merge I can use to generate this file, or failing that a VBA script but I'm at a loss to know where to start. Can anyone suggest something please?
Thanks!