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:

  1. after selecting clients range.
  2. open new workbook , paste selection in a1
  3. then save workbook in seperate directory (example: c:\aug2013detail)
  4. save workbook name of client in a2 of new book (client name in a2 after 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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -