+ Reply to Thread
Results 1 to 2 of 2

Code creates new workbook-> code to automatically run a set code on that workbook

  1. #1
    Registered User
    Join Date
    05-11-2009
    Location
    GA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Code creates new workbook-> code to automatically run a set code on that workbook

    I have code that splits sheets into different workbooks. When those are created into new workbooks, I would like for them to sort automatically without me manually putting in the code. Does anyone know a code that I can put in with the original workbook, before I put in the second code for the splits?
    Code 1 (makes new workBOOKS)
    Please Login or Register  to view this content.
    Code 2 (sorts new books into sheets)
    Please Login or Register  to view this content.
    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Code creates new workbook-> code to automatically run a set code on that workbook

    hi

    I'm not sure I understand exactly what you want, if it is to sort the sheets alphabetically by their names, have a look at the below link for some example code: http://www.cpearson.com/excel/sortws.aspx
    which I found along with other code using the below Google search:
    http://www.google.co.uk/search?hl=en...meta=&aq=f&oq=

    I have some questions & comments about your existing code which I have prefixed with "###".

    Please Login or Register  to view this content.
    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1