+ Reply to Thread
Results 1 to 4 of 4

VBA to import sheets with same

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    35

    VBA to import sheets with same

    Hi all,

    I want VBA Code to import multiple sheets bearing same name one below the other which are in different workbooks.

    Drive "D" contains "ALL DATA" folder which contains multiple workbook and all workbook contains sheet named "fair"
    Can anybody help?

    thanks in advance
    Last edited by vanitarathod; 07-10-2014 at 06:47 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: VBA to import sheets with same

    One way..

    * Put all Workbooks in "ALL DATA" folder into an array
    * Loop through this array and copy range from "fair" sheet in each Workbook to 'result' sheet in a Master Workbook..


    Is that enough to send you on your way?.. or do you need the code written for you?

    If so.. what's the range that is used in these "fair" sheets..? a sample Workbook would be helpful..

  3. #3
    Registered User
    Join Date
    06-18-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    35

    Re: VBA to import sheets with same

    Hi apo,

    thanks for reply.

    I am new to VBA. Actually I need code for above requirement. I have done small project for excel automation. Based on this automation, I want to import multiple sheets in master workbook for further requirement.

    I want to import all cells from sheet starting from Cell A1 till last data in sheet.

    Ones again I will mention my requirement.
    D drive has folder " ALL DATA" and folder has multiple workbooks where in all workbooks have common named sheet called "FAIR".
    I want all the data from fair sheet from 1st cell to last to be imported in active workbook.

    Please help.

    Thanks in advance

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: VBA to import sheets with same

    Hi, vanitarathod,

    maybe have a look at WBs to 1 Sheet and see if this code may help with your request.

    Ciao,
    Holger
    Last edited by JBeaucaire; 12-26-2019 at 05:24 PM.
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. Import to Multipule Sheets
    By mpeplow in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2006, 11:48 AM
  2. [SOLVED] import sheets into ppt without gridlines
    By Trang in forum Excel General
    Replies: 0
    Last Post: 03-07-2006, 02:10 AM
  3. how do import data from two sheets into one
    By vbidiot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2006, 08:20 PM
  4. How-Import 41 CSV files into 41 sheets?
    By Mintz87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 09:05 AM
  5. import sheets of name selected
    By ilyaskazi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2005, 11:05 AM

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