Results 1 to 3 of 3

Need to combine excel sheets but with selective columns

Threaded View

  1. #1
    Registered User
    Join Date
    03-25-2012
    Location
    India
    MS-Off Ver
    Excel 365
    Posts
    48

    Need to combine excel sheets but with selective columns

    Dear Guys,

    I have a simple macro which combine multiple excel sheets and into a sheet name "combined". Now I want slight change in the macro. I want to combine only selective column in sheets. here is the macro coding.

    [B][/Sub Combine()
    Dim J As Integer
    On Error Resume Next
    Sheets(1).Select
    Worksheets.Add
    Sheets(1).Name = "Combined"
    Sheets(2).Activate
    Range("A1").EntireRow.Select
    Selection.Copy Destination:=Sheets(1).Range("A1")
    For J = 2 To Sheets.Count
    Sheets(J).Activate
    Range("A1").Select
    Selection.CurrentRegion.Select
    Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select
    Selection.Copy Destination:=Sheets(1).Range("A65536").End(xlUp)(2)
    Next
    End Sub
    B]

    I am attaching here excel workbook with name of "DOMIS". In that workbook I only want to combine column "A", "C", "D" and "M" that is Name, DO No., DO Amt. and Dealer.


    Regards,

    Sachin

    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Combine 2 Columns from 2 different sheets with 2 conditions
    By Sekars in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-23-2017, 09:34 AM
  2. [SOLVED] Combine 2 Columns from 2 different sheets with 1 condition
    By Sekars in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-21-2017, 09:35 AM
  3. [SOLVED] Combine Selected Columns & Rows Informations from Multiple Excel Sheets to one sheet
    By akherief in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2016, 07:44 AM
  4. Macro to Print Multiple (Selective) Excel sheets to One PDF
    By volfan212 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2013, 03:42 PM
  5. Replies: 5
    Last Post: 12-11-2012, 05:04 AM
  6. Combine data from 2 sheets with different columns
    By mulpuris in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2012, 09:45 AM
  7. combine sheets columns
    By jfish in forum Excel General
    Replies: 6
    Last Post: 11-17-2010, 06:28 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