George J
Well-known Member
- Joined
- Feb 15, 2002
- Messages
- 959
I know this is an old chestnut, but i was hoping that someone had found something by now. I'm using Excel 2003 and have written some VBA to extract names and addresses from a webpage (at owners request). A user just pushes a single button and all the data is collected and sorted into a new workbook - one sheet for email updates and another sheet for postal.
Is there a way to get the data in column A (names and addresses nicely structured) into word labels? I know you can use a datasource in word, but i don't want anything to be saved onto the users system. The workbook they can close without saving once they have sent the emails and the postal sheet has a button on it just waiting for the code that will create the labels when pressed.
I can't find any way of copying and pasting the data to the labels manually - i even tried putting vbtab & chr(9) at the end of each cell to see if it would force it to tab to the next cell when inputting. Can anyone suggest a way of achieving this or how to even transfer from excel to labels one cell at a time?
I managed to get what i thought was the complicated part out of the way, but because nothing should be saved i'm stumped at the final hurdle.
thanks for any advice or wisdom.
Is there a way to get the data in column A (names and addresses nicely structured) into word labels? I know you can use a datasource in word, but i don't want anything to be saved onto the users system. The workbook they can close without saving once they have sent the emails and the postal sheet has a button on it just waiting for the code that will create the labels when pressed.
I can't find any way of copying and pasting the data to the labels manually - i even tried putting vbtab & chr(9) at the end of each cell to see if it would force it to tab to the next cell when inputting. Can anyone suggest a way of achieving this or how to even transfer from excel to labels one cell at a time?
I managed to get what i thought was the complicated part out of the way, but because nothing should be saved i'm stumped at the final hurdle.
thanks for any advice or wisdom.