Results 1 to 8 of 8

Help Extract from a Excle File Multiple Sheets with Specific Column Range

Threaded View

Lorenzo LM Help Extract from a Excle... 10-18-2018, 12:10 PM
JLGWhiz Re: Help Extract from a Excle... 10-18-2018, 03:57 PM
Lorenzo LM Re: Help Extract from a Excle... 10-19-2018, 03:53 AM
AliGW Re: Help Extract from a Excle... 10-19-2018, 03:55 AM
Lorenzo LM Re: Help Extract from a Excle... 10-19-2018, 07:34 AM
AliGW Re: Help Extract from a Excle... 10-19-2018, 07:34 AM
Kaper Re: Help Extract from a Excle... 10-19-2018, 08:58 AM
JLGWhiz Re: Help Extract from a Excle... 10-19-2018, 11:47 AM
  1. #1
    Registered User
    Join Date
    10-18-2018
    Location
    Dubai
    MS-Off Ver
    2016 Pro
    Posts
    3

    Help Extract from a Excle File Multiple Sheets with Specific Column Range

    Dear all,

    I need your help

    I have a File, inside this file there are n sheets all formatted in same way but each sheet has different name.

    I need to extract from the file all this sheet with the same specific range of column.

    For example:
    File RESULT
    SHEETS 1 2 3 4 5
    Column range C to D and Y to Z

    I need to create 5 new file, each of them called with the same name of the sheets so 1 2 3 4 5 and on each of them I must find the data from the range column mentioned above...


    now I am using this macro, but it create just the files based on the n sheets of master file

    Sub Splitbook()
    'Updateby20140612
    Dim xPath As String
    xPath = Application.ActiveWorkbook.Path
    Application.ScreenUpdating = False
    Application.DisplayAlerts = False
    For Each xWs In ThisWorkbook.Sheets
        xWs.Copy
        Application.ActiveWorkbook.SaveAs Filename:=xPath & "\" & xWs.Name & ".xlsx"
        Application.ActiveWorkbook.Close False
    Next
    Application.DisplayAlerts = True
    Application.ScreenUpdating = True
    End Sub

    and I want to combine it with this macro that copy specific columns for each n sheets in the n files created

    Public Sub extractCol()
         Set range1 = Range("C:D, Y:Z")
         range1.Copy
         Set newbook = Workbooks.Add
         ActiveCell.PasteSpecial Paste:=xlPasteValues
     End Sub

    I wish I was clear, I need to combine them please...


    also my reports for each sheets have merged cells, I need also to remove th emerge in order to copy the columns.


    thanks a lot

    lorenzo
    Last edited by AliGW; 10-19-2018 at 03:55 AM. Reason: Code tags added.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 05-23-2018, 09:35 PM
  2. Replies: 0
    Last Post: 09-06-2017, 08:30 PM
  3. Merging multiple files into one excle file with common & different headers
    By gurukiran in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2015, 01:40 AM
  4. [SOLVED] Extract specific cells from multiple excel files in same folder to new summary file
    By Derek Holden in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-02-2014, 01:43 AM
  5. [SOLVED] How to extract specific data only and create multiple sheets
    By pahari75 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-06-2014, 11:06 PM
  6. Extract specific column data from specific sheet from multiple files in a folder
    By piggyfox in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-31-2013, 11:51 AM
  7. [SOLVED] If same column in multiple sheets is marked with an X how can i extract surrounding data
    By chrisjames25 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2013, 03:25 PM

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