+ Reply to Thread
Results 1 to 3 of 3

Need to pull in data to the right of certain sheet's tables using VBA.

  1. #1
    Registered User
    Join Date
    03-05-2011
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    84

    Question Need to pull in data to the right of certain sheet's tables using VBA.

    Is this possible to do in VBA?
    1) Loop through a folder and all subfolders checking each xlsx file's sheet labels. When the sheet label contains the word Paste in any case, do the following
    2) Every sheet contains a table. On some sheets, there are a random # of blank columns to the right, followed by 2-4 columns that I need appended to a new sheet.
    3) So the vba should loop through all the sheets and append to a new single workbook sheet with those columns. the xlsx workbook and the sheet name would also be displayed.
    So the appended table looks like this
    Workbook Name | Sheet Name | NEED THIS Col1 | NEED THIS Col2 | NEED THIS Col3 (If available) | NEED THIS Col4 (If Available)

    All the workbooks look exactly like the attached except sometimes the NEED THIS columns start on row 1 and sometimes they are lower. The NEED THIS Columns usually dont have headers and they arent in table format.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Need to pull in data to the right of certain sheet's tables using VBA.

    Kinda hard to follow exactly what you are looking for, but
    1) Yes VBA can go through folders, open excel files, and check sheet names
    2) As stated, this is info and not a task, so NA. You would need to state how the VBA program determines where the important 2-4 columns are on a sheet and whether it is 2, 3, or 4 columns that are needed.
    3) Yes VBA can create new sheets and create tables of data copied from other sheets.

    So, generally, yes, this can be done.

    Not sure if you are looking for help on this effort or if you just want to know if it is possible before you attempt to code this yourself. If the former, what you state is quite a bit of work and very specific, so you may be pushed towards the paid services of this site.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    03-05-2011
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    84

    Re: Need to pull in data to the right of certain sheet's tables using VBA.

    This is good info thank you. Im bad at explaining but yes I was trying to figure out if this was something I could easily put together with below avg VBA skills or if i had to go the paid route. Paid route seems to be it.

+ 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] Pull the data from cosed wb in sheet(rawdata) copy to data sheet
    By julielara in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2016, 03:05 PM
  2. Pull spefic data, sort & average it and put into seperate tables
    By antmcg12 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-06-2014, 01:18 PM
  3. Replies: 0
    Last Post: 05-21-2013, 03:09 PM
  4. How to Pull Identical Tables to one Sheet from a List of URLs
    By gfertel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2012, 03:29 PM
  5. Replies: 9
    Last Post: 03-19-2012, 02:36 PM
  6. Excel Tables - Formulas to pull data from
    By Hans of CO in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2009, 07:30 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