VBA to Read or Extract PDF Tables without Reader or Acrobat API - VBA PDF Automation-11

VBA to Read or Extract PDF Tables without Reader or Acrobat API - VBA PDF Automation-11

VBA A2Z

4 года назад

31,617 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@user-sy6ir9bo5j
@user-sy6ir9bo5j - 15.09.2023 16:28

Thanks a lot man
U are a god

Ответить
@Kamsy-qd6nt
@Kamsy-qd6nt - 10.09.2023 12:04

Another's excellent one. Thanks.

Ответить
@Lalsuiliu-ek2so
@Lalsuiliu-ek2so - 07.08.2023 19:30

million thanks to you Sir

Ответить
@jimhenderson1005
@jimhenderson1005 - 23.05.2023 19:42

Very useful and informative. However, I believe your video would be much better if you would write the code in advance so that you could show and explain the code. Watching you type, correct typos, handle errors, etc. is very boring and makes the video excessively long.

Ответить
@Shahil-li4hj
@Shahil-li4hj - 21.05.2023 14:28

Amazing Sir

Ответить
@binumathew721
@binumathew721 - 02.05.2023 22:08

Hi. Thank you for the wonderful code. But why I am getting an error with Disable Macro in Word

Ответить
@Brad-fh2vn
@Brad-fh2vn - 08.04.2023 13:57

another great video thanks so much!

Ответить
@lechstryzewski9350
@lechstryzewski9350 - 27.02.2023 06:15

Awesome video and outstanding tutorial. I am running into a problem though. When using the doc.table method (tRow and tCount) ..... it works, but it stops counting at the first row (and after the 4th column). When I Debug.Print tRow & tCount it returns 2 and 5 respectively - That count is correct. However, when I "send" it to the Worksheet, I only get 1Row and 4 Columns. Please note, the first column is actually blank or "empty". I thought that might have something to do with it. - Now, when I use the Paragraph method and Debug.Print wLine ...... ALL of the information, text, etc.. comes back to the Immediate Window PERFECTLY (minus Trim and Clean). The problem with this is, ...... I cannot get it to "paste" that data to the Spreadsheet. Cell "A1" is continually blank. I am stuck. - Any suggestions?

Ответить
@WeningWang
@WeningWang - 30.01.2023 00:59

thanks for useful video.

Ответить
@kingsoko5319
@kingsoko5319 - 13.12.2022 10:32

Thank you for sharing this powerful tip

Ответить
@joseluis7118
@joseluis7118 - 23.09.2022 08:30

I use excel 2007 at work. Do you think this could work?

Ответить
@donaldreitsma6419
@donaldreitsma6419 - 01.09.2022 21:30

This was super helpful. There are up to 4 tables in a file I was going through and it was cumbersome using refresh all and getting errors because only 1 table is valid and I could not find a way to stop the error message (none of the VBA commands for error handling etc.. stopped the error message from appearing). Now with some modification I can find the right table and import the values.

Ответить
@gutembergmaciel
@gutembergmaciel - 09.07.2022 15:28

Supperb

Ответить
@wikamdiopekiang4972
@wikamdiopekiang4972 - 18.04.2022 15:42

thank you so much for this helpful tutorial

Ответить
@Ian_Enterprise
@Ian_Enterprise - 14.02.2022 07:29

Cool, is there also a way to get the images? from pdf of even word to save in a folder

Ответить
@mikewashington4188
@mikewashington4188 - 16.01.2022 06:02

You’re a miracle worker!!! Thanks brother

Ответить
@oleksijm
@oleksijm - 25.09.2021 14:09

Where do you get the dark theme for the VBA code editor? Thanks

Ответить
@Shriny100
@Shriny100 - 15.08.2021 10:35

It just doesn't work for me. Not sure why. The code run hangs for infinite time at this last line
Set wDoc = wApp.Documents.Open(FolderPath & pdffile, False)


FolderPath = Application.ThisWorkbook.Path & "\"
FileExtn = "*.pdf*"
pdffile = Dir(FolderPath & "\" & FileExtn)

ExcelFile = Dir(FolderPath & "\" & "*.xls*")





wApp.Visible = False


'''Loop through each pdf file in folder
Do While pdffile <> ""

On Error Resume Next
Set wDoc = wApp.Documents.Open(FolderPath & pdffile, False)

Ответить
@issergiothe
@issergiothe - 02.08.2021 02:19

é isso que estava procurando, seria bom em Português

Ответить
@avinashsudulagunta9470
@avinashsudulagunta9470 - 12.07.2021 09:07

Hi Sir, I have same kind of requirement but I need to copy entire data from pdf to excel and I don't have any other applications except ms office.

While using thus code I am getting notification as "Microsoft excel is waiting for another application to complete an OLE acttion"
Don't know what to do.

Ответить
@fatehsinghshekhawat9674
@fatehsinghshekhawat9674 - 19.05.2021 21:19

Compile error user defined type not defined

Ответить
@wingsoftechnology5302
@wingsoftechnology5302 - 08.05.2021 15:52

Thanks bro.... I really didn't know about this before 👍🏽

Ответить
@kamalam29
@kamalam29 - 05.05.2021 13:47

Hi Lung, One question! This is clearly means, Word Library has the facility to convert pdf files. We can open pdf files in work and then we can extract a piece of information. But could you guide us, is this facility also works with Office 2003, 2007, 2010, 2013, 2016, 365 or word 2003, 2007, 2010, 2013, 2016, 365 as well?

Ответить
@jalalkasmani2575
@jalalkasmani2575 - 04.04.2021 23:45

I am trying to convert the pdf to word doc but the format does not remain same and some text goes to some other page of the word doc. Can you please help advise ?

Ответить
@komputerkerja7391
@komputerkerja7391 - 19.03.2021 15:39

Can u help me?
How to extract some image from word document to folder using excel vba?

Ответить
@tobiewaldeck7105
@tobiewaldeck7105 - 12.03.2021 23:27

Hello, LP! The application works occasionally but with a lot of pdfs I'm getting this notification: "Microsoft Excel is waiting for another application to complete an OLE action" How do I overcome this? Does it have something to do with the fact that PDFXchange editor is my default pdf.

Ответить
@antoniomello1620
@antoniomello1620 - 08.03.2021 02:21

When I run this code the line "Set wDoc = wApp.Documents.Open(filename, False)" fails and Excel prompts an error saying that the Open method couldn't work. What can this be? (I already have the MS objects libraries checked in Tools > References).

Ответить
@jeffreyvanriebec9837
@jeffreyvanriebec9837 - 25.02.2021 18:02

Great tutorial @VBA A2Z

Does this only work on some type of PDF's?

Because I am getting only abracadabra back when I try to extract data. Also I cannot find any usable field when I look inside PDF's with notepad etc

I can read inside the PDF files => "PDF 1.4"

Any suggestions?

Ответить
@anhnhatnguyet4628
@anhnhatnguyet4628 - 23.02.2021 05:30

Excel file has many sheets with different data structures, I need to output a PDF file containing the data of all the sheets so that when printing, choose 2-sided printing mode. Can VBA do this?

Ответить
@ilanbam
@ilanbam - 13.02.2021 16:53

hi friend, your video helped me a lot, but I have one little problem, I can't copy the header of the page, can you help me?

Ответить
@vg6119
@vg6119 - 15.11.2020 15:07

Hi can you share the vba program and I have pdf exchange will it work on it?

Ответить
@hoseal8048
@hoseal8048 - 24.07.2020 19:33

Thanks. Very informative

Ответить
@sajuts5635
@sajuts5635 - 16.07.2020 15:57

Hi my vba code not identifying some tables...because it is mergerd in 2 or 3 pages and its only givin the table data from last page only not all data. plz help

Ответить
@bnancy3699
@bnancy3699 - 07.07.2020 11:41

this is brilliant. thank you.

Ответить
@simonnartpok6802
@simonnartpok6802 - 01.07.2020 11:25

is it possible to attached signature to pdf file with api / any other method using VBA?

Ответить
@pedie131
@pedie131 - 25.06.2020 13:49

love your tuts sir. keep it up. many thanks.

Ответить
@aundysam8286
@aundysam8286 - 20.06.2020 02:38

Another useful tut. thanks!

Ответить
@melivo853
@melivo853 - 17.06.2020 02:11

Another excellent tutorial thank you!

Ответить
@prathameshsutar3090
@prathameshsutar3090 - 08.06.2020 18:33

Can you please send file link?

Ответить
@KhalilYasser
@KhalilYasser - 07.06.2020 19:29

Still waiting for the link my friend.

Ответить
@giancajaracadillo
@giancajaracadillo - 07.06.2020 03:52

Los códigos solo son compatibles con Office 365? O que?

Ответить
@kylegurtowski5012
@kylegurtowski5012 - 06.06.2020 23:18

By the way, an easier way to get a filepath than copying the file name and adding it to the folder in Windows Explorer, you can use Shift+Left Click on the file you want then choose "Copy As Path".

Ответить
@Rahul-sn1wn
@Rahul-sn1wn - 06.06.2020 23:02

Thanks sir for sharing your knowledge. Keep it up

Ответить
@abbegaetan7328
@abbegaetan7328 - 06.06.2020 21:26

Thank you for all your usefull videos.

Please i need help to download multiple files form SharePoint subfolders that could be exist early or not.

Ответить
@holieh5301
@holieh5301 - 06.06.2020 19:50

You’re the best! Thanks for another informative and useful video.

Ответить
@SujithSurendran123
@SujithSurendran123 - 06.06.2020 17:57

This was a grt tip thank you so much for this, is it possible for you to provide the code ?

Ответить
@shinrafahell
@shinrafahell - 06.06.2020 16:42

Didn't know Word app could deal with pdf tables! Awesome tip, thanks!

Ответить
@azel2239
@azel2239 - 06.06.2020 16:39

Thanks as always. Keep up the good work

Ответить