+ Reply to Thread
Results 1 to 2 of 2

Deleting Sheet 2 and Sheet 3 from multiple excel files

  1. #1
    Registered User
    Join Date
    05-04-2017
    Location
    India
    MS-Off Ver
    2010
    Posts
    5

    Deleting Sheet 2 and Sheet 3 from multiple excel files

    Hi All ,

    Please let me know if there is a function/formula/macro to delete Sheet 2 and Sheet 3 from multiple excel files .

    Thanks in Advance!!!!!!!!

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Deleting Sheet 2 and Sheet 3 from multiple excel files

    .
    Paste this macro into a Routine Module:

    Please Login or Register  to view this content.
    The code provides access to the FileSystemObject so selecting the Folder is easier. It identifies ALL "xl" files in the folder, then deletes sheets 2 & 3 in each of those files.

    This is just one of most likely numerous ways to accomplish your goal.
    Attached Files Attached Files

+ 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. [SOLVED] Import named sheet from multiple excel files into a single sheet in defined excel file
    By LovesEurope in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-16-2016, 10:45 AM
  2. Replies: 0
    Last Post: 10-12-2015, 10:02 AM
  3. consolidate multiple excel files by sheet name
    By ashishmehra2010 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-26-2015, 05:20 AM
  4. Replies: 3
    Last Post: 07-23-2015, 04:04 AM
  5. Importing Multiple Text Files to one excel Sheet
    By thabounceisback in forum Excel General
    Replies: 1
    Last Post: 07-24-2012, 05:10 PM
  6. link multiple files from excel sheet
    By 4n6pc in forum Excel General
    Replies: 3
    Last Post: 11-29-2010, 02:49 PM
  7. Opening multiple CSV files into the same excel sheet
    By JustinKelly99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2009, 12:14 AM

Tags for this Thread

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