+ Reply to Thread
Results 1 to 2 of 2

Macro needed to move sheets to folders

  1. #1
    Registered User
    Join Date
    11-30-2007
    Posts
    1

    Macro needed to move sheets to folders

    Aloha.

    I need help writing a macro. My accounting program spits out a file with 40 sheets, each named xxx or 123 for a specific store number. From here I need to take each sheet and dump it to a folder that also has the corresponding store number. I then share the directory and each store can access their info.

    so my workbook looks like this - 123 124 125 126 127 128

    My directory looks like this -

    123
    124
    125
    126
    127
    128

    I need a quick and easy way to move those individual sheets into the correct folders. My accounting program will spit out 5 different workbooks so i need to do this a total of 5 times.

    any help would be appreciated.

    Thanks, Nate

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I assume the Folders exist. This code needs adding to your PERSONAL>xls or creating as an addin. I haven't tested it but it should work.

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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