• Import Tabbed Excel Spreadsheet into Access? (a2k (9.0.6926) SP-3 Jet 4.0

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Import Tabbed Excel Spreadsheet into Access? (a2k (9.0.6926) SP-3 Jet 4.0

    Author
    Topic
    #455271

    I have an Excel spreadsheet with the following 12 Tabs Jan through Dec for an entire year of transactions

    Each Tab can have a variable number of line items (from none to many) in the following format:

    Permit#	Date	Fee	Value	Name		Address		Desc	CodeType
    1-2007	01/02/08	$156	$12,000	Brown, John	1234 Main St	Remodel	A      3
    2-2007	01/02/08	$176	$15,000	Brown, Mary	2345 Main St	Deck	C      5
    
    2			$332	$17,000
    

    I want to open a Access database an import the detail in each Excel Tab into one access table

    I need some code within access to automate opening the spreadsheet and import Jan into a new table and import Feb through Dec into the same existing new table while ignoring any blank records and the total counts record in each Tab

    See attached db for what the Jan Tab looks like

    Any examples or help would be appreciated

    Thanks, John

    Viewing 0 reply threads
    Author
    Replies
    • #1132539

      I’d remove the totals rows from all the sheets in Excel. You should then be able to import them directly into Access.

      If that is not possible, please attach a representative sample workbook instead of a database.

      • #1132629

        Here you go!

        • #1132639

          The sheets aren’t suitable for importing into Access since column E is blank. I’d delete column E and delete all the superfluous rows manually. That’s probably faster than working around these problems using VBA.

    Viewing 0 reply threads
    Reply To: Import Tabbed Excel Spreadsheet into Access? (a2k (9.0.6926) SP-3 Jet 4.0

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

    Your information: