+ Reply to Thread
Results 1 to 3 of 3

Moving sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    10-14-2010
    Location
    BC Canada
    MS-Off Ver
    Excel 365
    Posts
    78

    Moving sheets

    Hi,

    I have a folder with 20 or so xlsx files each with only one sheet. I would like to move them all into one workbook. I would like to write a program to do this automatically since I have this feeling I might have to do this several times. I'm not to familiar with VBA or macros, but I've dabbled. I was hoping that someone could point me in the right direction.

    Thanks

    Jon

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,729

    Re: Moving sheets

    Here is code to move one sheet in the current workbook to a workbook called Todo.xlsm. You can jsut add on to it for additional sheets. It puts into the new workbook after sheet1.

    Sub Macro1()
    '
    
        Sheets("Sheet3").Select
        Sheets("Sheet3").Move After:=Workbooks("ToDo.xlsm").Sheets(1)
    End Sub
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-14-2010
    Location
    BC Canada
    MS-Off Ver
    Excel 365
    Posts
    78

    Re: Moving sheets

    Found a real good program to do it here.
    http://www.rondebruin.nl/txtcsv.htm
    Thanks for the help

+ 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