copy paste - create new workbook from selection in excel -
i have monthly workbook detail of 37000 lines , 350 clients.
clients must detail in separate workbook attach pastel invoice.
i want macro to:
- after selecting clients range.
- open new workbook , paste selection in
a1 - then save workbook in seperate directory (example:
c:\aug2013detail) - save workbook name of client in
a2of new book (client name ina2after pasting)
thus ending 350 seperate workbooks in directory
thank much. hennie koch
i fiddled around bit , works perfect!!!!! hennie
sub macro13() ' ' macro13 macro ' ' keyboard shortcut: ctrl+s ' selection.copy workbooks.add activesheet.paste activecell.offset(1, 0).range("a1").select application.cutcopymode = false thisfile = range("a2").value activeworkbook.saveas filename:=thisfile activewindow.close end sub
Comments
Post a Comment