+ Reply to Thread
Results 1 to 3 of 3

Recursively add copy worksheet

  1. #1
    Registered User
    Join Date
    11-01-2012
    Location
    Aberdeen
    MS-Off Ver
    Excel 2016
    Posts
    60

    Recursively add copy worksheet

    Hi all,
    I need to add a sheet from active workbook to the end of each workbooks located in a folder (and subfolders).
    I have already tried and succeed using the code for the root directory of a folder but cannot get it to work recursively entering in each subfolder and search for xlsm files. The code is one i found on the internet adjusted in my characteristics.

    Any help appreciated.
    Thank you.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Recursively add copy worksheet

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 04-26-2018 at 08:36 AM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    11-01-2012
    Location
    Aberdeen
    MS-Off Ver
    Excel 2016
    Posts
    60

    Re: Recursively add copy worksheet

    Thank you for the reply.
    I will test the code when i get back to the office.
    I just want to ask about the line Application.ScreenUpdating = False, does this suppress the warning message about macro security or only about saving?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Recursively Scan And Open All CSV Files In Directory
    By jo15765 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2018, 06:01 AM
  2. Rename Files in sub-folders recursively using part of filename as a rule.
    By fokeiro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2017, 02:08 PM
  3. Recursively search a sharepoint site for xls and xlsx files
    By Keruck in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2013, 09:29 AM
  4. Need help recursively copy/pasting
    By TheRaptMuse in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-07-2012, 11:35 AM
  5. Recursively traverse through a range and assign a value to each cell in range
    By itzchau in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-11-2010, 12:44 PM
  6. Recursively matching sums?
    By michaelswhitehe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-28-2006, 10:17 AM
  7. Running an add-in recursively on embedded files
    By akullen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2006, 05:26 PM

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