+ Reply to Thread
Results 1 to 9 of 9

VBA pull data from closed workbook depends upon header status !!! need help of experts

  1. #1
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    VBA pull data from closed workbook depends upon header status !!! need help of experts

    Dear expert's


    I WANT PULL DATA FROM CLOSED WORKBOOK DEPENDS UPON
    "HEADER STATUS VALUES" I HAVE SET OF HEADER VALUES "A1:P1" NOT MORE THAN THAT

    I HAVE SOME MULTIPLE SLC_1,2,3,4,5 ETC WORKBOOK IN SOME TARGETED FOLDER(D:\Documents and Settings\Administrator\Desktop\FORUMINPUT\REBV\HEADERUPDATES))

    ...FROM THE TARGETED FOLDER I WANT PULL DATA RANGE OF A:Q IN Q COLUMN I WANT PULL WORKBOOK NAME (E.G) IF PULLED FROM SLC_1 I WANT SLC_1.XLS IN Q COLUMN

    IN EVERY WORKBOOK CONTAINS SAME SET OF HEADER STATUS" BUT IT GET CHANGED INTO DIFFERENT COLUMN...

    FOR E.G IN WORKING FILE SLC_1 HAVE SAME SET OF HEADER(A:P) BUT IN 15 HEADER STATUS COLUMN "CUSTOMER " MOVED TO 13

    AT THE SAME TIME 13 HEADER STATUS COLUMN "CONTACT NAME " MOVED TO 15 "

    I WANT PULL SAME RANGE EVEN THOUGH IN BETWEEN COLUMN HAS HIDE I WANT PULL DATA....

    FIND THE ATTACHMENT WITH THREAD( ONE IS MASTER, REST 3 (SLC,1,2,3 IS WORKING FILE)

    RESI;T EXPECTED IS IN SHEET2 IN MASTER)

    THANKS ALOT
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Re: VBA pull data from closed workbook depends upon header status !!! need help of experts

    any experts help on my thread???

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA pull data from closed workbook depends upon header status !!! need help of experts

    I am not sure on the speed and may be very slow, but I have tested it on the 3 sheets and works.

    You need to change the path
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Re: VBA pull data from closed workbook depends upon header status !!! need help of experts

    Dude It works Perfectly With out having debugging error!!! But its not pull the data from path....

    any one help on code

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA pull data from closed workbook depends upon header status !!! need help of experts

    It may be this line

    Please Login or Register  to view this content.
    INTO

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Re: VBA pull data from closed workbook depends upon header status !!! need help of experts

    No dude It not working for me....even i tried in 2003 and 2007 also if you have done successfully can you upload that sheet?

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA pull data from closed workbook depends upon header status !!! need help of experts

    What do you mean it is not working? I have tested on my PC and works. When you loop though your folder, does the code skip certain sheets? Could you run it by pressing F8 and see if it picks up all your files. Remember, the code works on a single Dir name ONLY, not sub folders.

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA pull data from closed workbook depends upon header status !!! need help of experts

    I have added another code. I hope one of them should work for you.
    The first code should work with any file xls and second works with any xl files.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Re: VBA pull data from closed workbook depends upon header status !!! need help of experts

    Yes Its works fine and perfectly as what am i looking for !!!! Your are awesome Mr AB33... thanks alot ever keept helping me

+ 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. excel userform pull data from closed workbook
    By thameem127 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2013, 01:53 PM
  2. Use VBA to pull data from another closed workbook
    By derryt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2012, 11:09 AM
  3. [SOLVED] Using ADO to pull data from closed workbook.
    By abhay_547 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2010, 06:20 PM
  4. Pull numbers from closed workbook
    By The Phil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-09-2010, 09:22 PM
  5. "Workbook_BeforeClose" action depends on how the workbook was closed
    By Greg M in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-14-2010, 10:57 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