+ Reply to Thread
Results 1 to 6 of 6

Pull out numbers and text from 10+ excel files in a folder

  1. #1
    Registered User
    Join Date
    08-31-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Pull out numbers and text from 10+ excel files in a folder

    Hello everyone,

    I am looking to build a macro that goes through all the excel files (and their tabs) in a folder and pull out numbers which start with 01 or 02 and copy paste it into a new excel sheet.

    I want it to go through those sale excel files (and their tabs) and pull out text in a certain font colour and paste that in a new excel sheet.

    NOTE: The text and numbers are in text box and not cells.

    Could someone kindly point me in the right direction on how I can go about doing this?

    Thank you

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Pull out numbers and text from 10+ excel files in a folder

    Hi ammarkhan,

    Could you supply more specific details fr the name of the folder and its path, the source for the textbox if there is one?

    It sounds as though you'll need to "run the directory" by succesive calls to Dir() (after the Path has been invoked one time)

    and then you'll want to traverse each sheet in the work book - I need more information about the Text Boxes to be more specific.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    08-31-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Pull out numbers and text from 10+ excel files in a folder

    The folder sits in my Documents folder and the text box is the standard one that excel uses so unsure what you mean by source.

    I hope that answers your question?

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Pull out numbers and text from 10+ excel files in a folder

    So, the Path is C:\My Documents ??? and the Textboxes are all TextBox1??

  5. #5
    Registered User
    Join Date
    08-31-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Pull out numbers and text from 10+ excel files in a folder

    Yes, that is the path. I am still unclear about text box. I have taken an image to explain which text box it is here - http://screencast.com/t/8FWeX27F5lT

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Pull out numbers and text from 10+ excel files in a folder

    The screencast didn't work. What's the folder name? How many Text Boxes are on each tab? Can you post a sample?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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