+ Reply to Thread
Results 1 to 5 of 5

Macro to read two different formats (.xls and .ods)

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    25

    Question Macro to read two different formats (.xls and .ods)

    Hello forum

    I need the macro code to read two different file formats in a folder.
    I use this code to read .xls format
    Please Login or Register  to view this content.
    Now I want to read both .xls and .ods file formats in a particular folder.

    Please do reply if anyone has idea about this.
    Thanks in advance.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to read two different formats (.xls and .ods)

    Run the macro once using that filter, then run it again using the .ods as the filter.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-05-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Macro to read two different formats (.xls and .ods)

    Thanks Jerry. I did the same.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Macro to read two different formats (.xls and .ods)

    If that takes care of your original query, please select Thread Tools from the menu above and mark the thread as solved. Thanks.

  5. #5
    Registered User
    Join Date
    02-05-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Macro to read two different formats (.xls and .ods)

    Done...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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