Copying data from multiple pdf files

后端 未结 6 1117
太阳男子
太阳男子 2021-01-14 19:51

I have pdf files from which I would like to copy all the data to a column in a spreadsheet.

Here is the code I have. All it does is open the pdf, use control-a, then

6条回答
  •  悲哀的现实
    2021-01-14 20:22

    I can't quite get your code to work, but my guess is that it's copying all of the data, but overwriting it each time through the loop. To fix this try:

    ActiveSheet.Cells(1, ActiveSheet.Cells(1, Columns.Count).End(xlToLeft).Column + 1).Select
    

    instead of the two lines that begin activesheet.range("A1").Select and Selection.End....

提交回复
热议问题