• Import lots of spreadsheets with lots of tabs

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Import lots of spreadsheets with lots of tabs

    Author
    Topic
    #463585

    I have a directory full of spreadsheets that have 1 to many tabs in each of them.

    Each tab is identical in format, just the data is different.

    Anyone have any code that can open the spreadsheets and cycle through the tabs? I can easily do the import, but the tab thing has me stumped.

    Thanks!

    Viewing 0 reply threads
    Author
    Replies
    • #1183971

      Do all tabs have data in them, or do you need to check to see if a tab has data? I think probably Automation would be the best choice in trying to sort that out. For one thing you need to figure out how many tabs each workbook has. You will have to use the Excel object model to do both tasks, and the sheet property is exposed to automation.

      • #1183973

        Do all tabs have data in them, or do you need to check to see if a tab has data? I think probably Automation would be the best choice in trying to sort that out. For one thing you need to figure out how many tabs each workbook has. You will have to use the Excel object model to do both tasks, and the sheet property is exposed to automation.

        I believe all the tabs have data, but I can easily check to see if there is data in the cells.

      • #1183987

        Do all tabs have data in them, or do you need to check to see if a tab has data? I think probably Automation would be the best choice in trying to sort that out. For one thing you need to figure out how many tabs each workbook has. You will have to use the Excel object model to do both tasks, and the sheet property is exposed to automation.

        Thanks for the pointer….it helped me figure it all out!

    Viewing 0 reply threads
    Reply To: Import lots of spreadsheets with lots of tabs

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: