Consulting

Results 1 to 2 of 2

Thread: Collect data from a multi-sheets workbook

  1. #1
    VBAX Regular
    Joined
    Jan 2015
    Posts
    92
    Location

    Collect data from a multi-sheets workbook

    I have a multi sheets workbook (can be hundreds)
    each sheet has the same structure ie column headings in the first 3 rows and data from row 4; each sheet always has 9 columns of data (A ÷ I).


    I would like to search for a string, it can be alphanumeric containing characters such as / etc. in all the sheets that make up the workbook and for each occurrence found a new sheet 'Report' should be populated where each added line contains:


    in column 1 cell B1 of the sheet in which the data was found,
    in column 2 the cell C1 of the sheet in which the data was found,
    in column 3 cell D1 of the sheet in which the data was found,


    in the next 8 columns (D ÷ K) part of the record where the string was found (ie from column B to column I).


    In the past I was given a code (see the FindAll function in the attached sample file) that had to do something like this but does not work correctly. It seems not to scroll through all the sheets of the workbook etc.


    I am attaching a sample.xlms file where, assuming to search for the string 'idealsconfort' trought all the sheets except 'Report' ...in this last, you can see what a routine or function should return.




    I thank you in advance for any useful suggestions to achieve this goal


    thank you
    Attached Files Attached Files

  2. #2
    VBAX Expert Dave's Avatar
    Joined
    Mar 2005
    Posts
    836
    Location
    Perhaps a review of the etiquette in both forums would be of benefit. Dave
    Collect data from a multi-sheet workbook | MrExcel Message Board

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •