bobaol
Board Regular
- Joined
- Jun 3, 2002
- Messages
- 227
- Office Version
- 365
- 2003 or older
- Platform
- Windows
Hello, I have a few thousand pdf files. each file has 14 tables to 444 tables, it varies. Each table may have 1 column to 144 columns, it varies. I want to import each pdf file (using PQ, macro, or otherwise), then save it. The import I want is each file, each table be in its own sheet, then save the file, do this again for the next file. In the import process, it is okay to assume every file has 444 tables, and each table has 144 columns. and assume all data types are text. I will manipulate it further after all the data is imported. How do I import each file, break up each table into its own sheet, then save the file as .xlsx or .xlsm? any help is appreciated. Thanks in advance.
Here is a sample of one file. But how do I tell what is table001 or table002?
Table001
= Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Column1", type text}, {"Column2", type text}, {"Column3", type text}})
Table002
= Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type text}})
Table003
= Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type text}, {"Column8", type text}})
Table004
= Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Column1", type text}})
Here is a sample of one file. But how do I tell what is table001 or table002?
Table001
= Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Column1", type text}, {"Column2", type text}, {"Column3", type text}})
Table002
= Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type text}})
Table003
= Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type text}, {"Column8", type text}})
Table004
= Table.TransformColumnTypes(#"Expanded Table Column1",{{"Source.Name", type text}, {"Column1", type text}})