So I need to send an email to the faculty at my school, and after much effort, I extracted the email addresses into a separate document. They are now in a line-break separated list. I need them to be in a comma separated list. I’ve tried importing into excel, and saving as a comma-separated list, but when I take it back into Word, it line-breaks them. Rather than hit comma, delete, end ad nauseaum, how can I automate this process?
Here’s what I came up with:
- Take your Word data (one item per line) and paste it into Excel. It should put one item per row in Excel.
- Highlight all of your Excel data.
- Right-click and choose “Copy”
- Go to Sheet 2 in Excel.
- Right click and choose “Paste Special”
- Check the “Transpose” box in the “Paste Special” window. This will paste everything into your new spreadsheet as one item per column instead of one per row.
- Highlight all of your data on Sheet 2.
- Right-click and choose “Copy”
- Open Notepad (Start - Run - Notepad.exe)
- CTRL-v to paste your data into Notepad
- Use your cursor to highlight the space between Email1 and Email2. Hit CTRL-c to copy that space.
- Hit CTRL-h to bring up the “Replace” function in Notepad.
- Put your cursor in the “Find What” box and then hit CTRL-v to paste the “space” into that box.
- In the “Replace With” box, type a comma. Then hit “Replace All”
That should give you a comma-delimited list of email addresses.
ctrl-a
ctrl-h
^p
tab
,
alt-a
Seriously: ctrl-a selects all text. ctrl-h brings up the “Find and Replace” dialog. You enter ^p in the “Find What” and a comma in the “Replace With” boxes. Alt-a replaces all occurences.
^p is the code that represents paragraph breaks.