Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've got a spreadsheet which is used as a Word merge data
source. It's just names and addresses. However they are sorted in name order and what is needed is a separate Excel file for each street name. Okay, so just sort the records in street order and cut & paste them to new files. However, the addresses on the sheet have been typed sporadically with addresses like "48 Acacia Avenue" so I cannot sort a column on the street name. My only option has been to do a Find on the sheet for each road name (eg 'High Street') then select the entire row for that record, cut, switch to the other sheet and paste it in. I could really use a macro that would do this automatically. I would need to type in the road name, then the macro searches for the first occurence, selects that whole row, cuts, switches to the other sheet (different Excel file, but could be other sheet in same file if easier), paste row, move down one row, switch back to master sheet, find next occurrence.... Would anyone here be able to write this macro, as my Excel VBA is not as good as my Word VBA and I don't know where to start! Many thanks to anyone who can help! Steve Wylie |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to separate names and addresses in a spreadsheet | Excel Worksheet Functions | |||
Extracting email addresses from hyperlinks. | Excel Discussion (Misc queries) | |||
Email Addresses in a spreadsheet | Excel Worksheet Functions | |||
how to setup a spreadsheet with addresses | New Users to Excel | |||
Extracting email addresses from Outlook Contacts | Excel Programming |