Тёмный

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

VBA A2Z
Подписаться 51 тыс.
Просмотров 32 тыс.
50% 1

Friendly tutorial to Automate PDF using real-world scenarios using VBA and PDF API.
More resources: vbaa2z.blogspot.com/2020/01/v...
Subscribe, Like, and Comment. 🙏Thanks for watching.
You can now support by buying any of the Projects or Source Code.
📥Downloads: pamaitech.com/downloads/
👍 Support: paypal.me/pamaitech
✉️ Contact: contact@pamaitech.com
📌What to watch next:
Playlist: ru-vid.complaylists
Videos: ru-vid.comvideos
#VbaA2z

Наука

Опубликовано:

 

3 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 130   
@holieh5301
@holieh5301 4 года назад
You’re the best! Thanks for another informative and useful video.
@VBAA2Z
@VBAA2Z 4 года назад
You are so welcome!
@melivo853
@melivo853 4 года назад
Another excellent tutorial thank you!
@VBAA2Z
@VBAA2Z 4 года назад
Glad you liked it!
@shinrafahell
@shinrafahell 4 года назад
Didn't know Word app could deal with pdf tables! Awesome tip, thanks!
@VBAA2Z
@VBAA2Z 4 года назад
You're welcome.
@mikewashington4188
@mikewashington4188 2 года назад
You’re a miracle worker!!! Thanks brother
@VBAA2Z
@VBAA2Z 2 года назад
Glad to help
@azel2239
@azel2239 4 года назад
Thanks as always. Keep up the good work
@VBAA2Z
@VBAA2Z 4 года назад
Thanks, will do!
@aundysam8286
@aundysam8286 4 года назад
Another useful tut. thanks!
@VBAA2Z
@VBAA2Z 4 года назад
Glad it was helpful!
@pedie131
@pedie131 4 года назад
love your tuts sir. keep it up. many thanks.
@VBAA2Z
@VBAA2Z 4 года назад
Glad you like them!
@bnancy3699
@bnancy3699 4 года назад
this is brilliant. thank you.
@VBAA2Z
@VBAA2Z 4 года назад
You're very welcome!
@Kamsy-qd6nt
@Kamsy-qd6nt 9 месяцев назад
Another's excellent one. Thanks.
@VBAA2Z
@VBAA2Z 9 месяцев назад
Thanks for listening
@kingsoko5319
@kingsoko5319 Год назад
Thank you for sharing this powerful tip
@VBAA2Z
@VBAA2Z Год назад
You are so welcome
@Brad-fh2vn
@Brad-fh2vn Год назад
another great video thanks so much!
@VBAA2Z
@VBAA2Z Год назад
Glad you enjoyed it!
@hoseal8048
@hoseal8048 4 года назад
Thanks. Very informative
@VBAA2Z
@VBAA2Z 4 года назад
You're welcome
@Rahul-sn1wn
@Rahul-sn1wn 4 года назад
Thanks sir for sharing your knowledge. Keep it up
@VBAA2Z
@VBAA2Z 4 года назад
It's my pleasure
@VBAA2Z
@VBAA2Z 3 года назад
Interested to become VBA Pro? Here is 100% free guided e-course with Real-life projects. Sign-up to participate, get assignments and a certificate:- bit.ly/3eX8tzl
@Lalsuiliu-ek2so
@Lalsuiliu-ek2so 11 месяцев назад
million thanks to you Sir
@VBAA2Z
@VBAA2Z 11 месяцев назад
you're most welcome!
@wikamdiopekiang4972
@wikamdiopekiang4972 2 года назад
thank you so much for this helpful tutorial
@VBAA2Z
@VBAA2Z 2 года назад
You're very welcome!
@user-sy6ir9bo5j
@user-sy6ir9bo5j 9 месяцев назад
Thanks a lot man U are a god
@VBAA2Z
@VBAA2Z 9 месяцев назад
Glad to hear it help but I am not :)
@WeningWang
@WeningWang Год назад
thanks for useful video.
@VBAA2Z
@VBAA2Z Год назад
You are most welcome
@donaldreitsma6419
@donaldreitsma6419 Год назад
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.
@VBAA2Z
@VBAA2Z Год назад
Glad it helped!
@wingsoftechnology5302
@wingsoftechnology5302 3 года назад
Thanks bro.... I really didn't know about this before 👍🏽
@VBAA2Z
@VBAA2Z 3 года назад
Most welcome. Thanks for watching
@wingsoftechnology5302
@wingsoftechnology5302 3 года назад
@@VBAA2Z Bro can you please tell, How can I print an Excel file using vba & selecting no. of copies using vba only ?
@VBAA2Z
@VBAA2Z 3 года назад
try something like this. Sheet1.PrintOut Copies:=10
@Shahil-li4hj
@Shahil-li4hj Год назад
Amazing Sir
@VBAA2Z
@VBAA2Z Год назад
thanks
@kylegurtowski5012
@kylegurtowski5012 4 года назад
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".
@VBAA2Z
@VBAA2Z 4 года назад
thanks for the useful tip Kyle.
@ashwaniaggarwal4218
@ashwaniaggarwal4218 4 года назад
Many thanks to make this video. Please make the video on msi installer for VSTO deployment project. I am waiting for next video of your VSTO Series.
@VBAA2Z
@VBAA2Z 4 года назад
Sure, we've many topics to be covered in Office for .NET :)
@gutembergmaciel
@gutembergmaciel 2 года назад
Supperb
@VBAA2Z
@VBAA2Z 2 года назад
Thank you! Cheers!
@issergiothe
@issergiothe 2 года назад
é isso que estava procurando, seria bom em Português
@VBAA2Z
@VBAA2Z 2 года назад
Obrigada. Vou tentar atualizar as legendas
@levelupexcelskill
@levelupexcelskill 4 года назад
Many thanks to make this video....Could you please make a video of advance array, VBA dictionary and collection so we can develop our advance knowledge in VBA
@VBAA2Z
@VBAA2Z 4 года назад
Please check this video. I have used practical example with simple example to use array and dictionary. btw - array and dictionary are very simple to use in VBA. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-GVykRlxfzPI.html
@levelupexcelskill
@levelupexcelskill 4 года назад
@@VBAA2Z thank you so much......you have made a video to comparing sheet could you please elaborate that because I am new in vba array dictionary and collection
@lechstryzewski9350
@lechstryzewski9350 Год назад
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?
@KhalilYasser
@KhalilYasser 4 года назад
Thanks a lot for the awesome video. It seems you forgot the link in the description :)
@VBAA2Z
@VBAA2Z 4 года назад
Sure will upload it to blog soon.
@VBAA2Z
@VBAA2Z 4 года назад
Please check vbaa2z.blogspot.com/
@abbegaetan7328
@abbegaetan7328 4 года назад
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.
@VBAA2Z
@VBAA2Z 4 года назад
here is example of how to upload. to download you just need to reverse the source and destination path. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-LLxM7cekToU.html
@abbegaetan7328
@abbegaetan7328 4 года назад
@@VBAA2Z That right. Thank you. I am going to try it and after i will come back to you.
@jeffreyvanriebec9837
@jeffreyvanriebec9837 3 года назад
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?
@VBAA2Z
@VBAA2Z 3 года назад
Correct, it does not work for all types of PDF. Some pdf created using Acrobat are not readable using Word App lib leaving us with Acrobat API which is cost involved but most reliable.
@antoniomello1620
@antoniomello1620 3 года назад
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).
@VBAA2Z
@VBAA2Z 3 года назад
Hi Antonio, what is the exact error? it is possible your file path is not correct.
@anhnhatnguyet4628
@anhnhatnguyet4628 3 года назад
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?
@VBAA2Z
@VBAA2Z 3 года назад
Sure it can it done. I'll try and cover this topic in future videos
@Ian_Enterprise
@Ian_Enterprise 2 года назад
Cool, is there also a way to get the images? from pdf of even word to save in a folder
@VBAA2Z
@VBAA2Z 2 года назад
I haven't tried. Try posting it to stackoverflow.com/
@joseluis7118
@joseluis7118 Год назад
I use excel 2007 at work. Do you think this could work?
@VBAA2Z
@VBAA2Z Год назад
Yes, it should.
@binumathew721
@binumathew721 Год назад
Hi. Thank you for the wonderful code. But why I am getting an error with Disable Macro in Word
@VBAA2Z
@VBAA2Z Год назад
Happy to help. please check support.microsoft.com/en-us/office/enable-or-disable-macros-in-microsoft-365-files-12b036fd-d140-4e74-b45e-16fed1a7e5c6
@SujithSurendran123
@SujithSurendran123 4 года назад
This was a grt tip thank you so much for this, is it possible for you to provide the code ?
@VBAA2Z
@VBAA2Z 4 года назад
Sure will upload it to blog soon.
@VBAA2Z
@VBAA2Z 4 года назад
Please check vbaa2z.blogspot.com/
@SujithSurendran123
@SujithSurendran123 4 года назад
@@VBAA2Z Thank you soo much..!! You are awesome !!
@simonnartpok6802
@simonnartpok6802 4 года назад
is it possible to attached signature to pdf file with api / any other method using VBA?
@VBAA2Z
@VBAA2Z 4 года назад
I'll try and demo in coming videos for now here is API ref. www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/access_v9.pdf
@kamalam29
@kamalam29 3 года назад
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?
@VBAA2Z
@VBAA2Z 3 года назад
Yes it should. Though I have not tried in all the versions.
@kamalam29
@kamalam29 3 года назад
@@VBAA2Z I did some research. OCR is available from version 2013. Thanks a lot Lung.
@VBAA2Z
@VBAA2Z 3 года назад
@@kamalam29 great, thanks Kamal
@avinashsudulagunta9470
@avinashsudulagunta9470 3 года назад
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.
@VBAA2Z
@VBAA2Z 3 года назад
Hi Avinash - please check out this thread techcommunity.microsoft.com/t5/excel/microsoft-excel-is-waiting-for-another-application-to-complete/m-p/1388914
@akshayc6163
@akshayc6163 3 года назад
When i run the code at 6:07, it keeps running but doesn't display anything to the Immediate window. Why?
@jimhenderson1005
@jimhenderson1005 Год назад
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.
@VBAA2Z
@VBAA2Z Год назад
thanks Jim! much appreciated for feedback
@komputerkerja7391
@komputerkerja7391 3 года назад
Can u help me? How to extract some image from word document to folder using excel vba?
@VBAA2Z
@VBAA2Z 3 года назад
try below and also check this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uccdOWubLpg.html Set obj = ActiveDocument.InlineShapes(1) obj.OLEFormat.Activate obj.OLEFormat.Object.SaveAs "filename"
@tobiewaldeck7105
@tobiewaldeck7105 3 года назад
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.
@VBAA2Z
@VBAA2Z 3 года назад
Hi Tobie, this could be due to multiple scenarios like memory not cleared properly, the library locked by other app. Try below settings and see if it helps. techcommunity.microsoft.com/t5/excel/no-links-vba-addons-but-microsoft-excel-waiting-for-another/m-p/331063 While the error message is always the same, there are actually a couple of pretty common scenarios that trigger this particular error in Microsoft Excel: DDE protocol is deactivated in Excel - This problem can occur because the DDE protocol (Dynamic Data Exchange) is deactivated in the Excel settings. Corrupt Office Installation - Some users have reported that the problem was resolved after reinstalling or repairing the entire Office installation. Adobe Acrobat PDFMaker add-in conflicts with Excel - There have been some reports from users who were able to fix the problem by disabling or uninstalling the PDFMaker plug-in. IE (Internet Explorer) process is interfering with the DDE - this usually occurs when the user tries to save a file in Microsoft Excel. In this case, the solution is to manually end the process. Examble for DDE protocol, a quick guide. Open Microsoft Excel and click on File. It doesn't matter whether you're opening a new workbook or a new document. Open Microsoft Excel and go to File On the File menu in the left pane, click Options. Go to File> Options From the Excel Options menu in the left menu, click the Advanced tab. Then move to the right pane and scroll down until you get to the General section. Make sure that the Ignore other applications using Dynamic Data Exchange (DDE) check box is cleared. Examble for Adobe Acrobat : In the COM Add-Ins box, either clear the check box for the Acrobat PDFMaker Office COM Add-in, or select it and click Remove to delete it completely. Examble for IE explorer: Press Ctrl + Shift + Esc to open Task Manager. Switch to the Processes tab in Task Manager and check whether an Internet Explorer process is currently active. If one is open, just right click on it and choose End Task to close it. End the Internet Explorer (IE) process Return to Excel and see if the "Microsoft is waiting for another application to complete an OLE action" error still occurs when you try to save the file. Wenn das alles nicht geholfen hat , dann hilft nur (maybe) die Unterdrückung von Excel Application Messaging mit VBA or turn off compatibility mode .
@tobiewaldeck7105
@tobiewaldeck7105 3 года назад
@@VBAA2Z I will explore more as some did not work but it may be that the pdf is in some sort of Acrobat Format or to big. I would also like to know how to change the code to get the heading or description just above a table if that is possible.
@VBAA2Z
@VBAA2Z 3 года назад
sure, happy to assist. feel free to send me your code to the email in video description.
@Shriny100
@Shriny100 2 года назад
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)
@oleksijm
@oleksijm 2 года назад
Where do you get the dark theme for the VBA code editor? Thanks
@oleksijm
@oleksijm 2 года назад
Nevermind, found your other video where you explain it.
@VBAA2Z
@VBAA2Z 2 года назад
ok great! hope it helps
@giancajaracadillo
@giancajaracadillo 4 года назад
Los códigos solo son compatibles con Office 365? O que?
@VBAA2Z
@VBAA2Z 4 года назад
También debería funcionar en versiones anteriores de Office.
@giancajaracadillo
@giancajaracadillo 4 года назад
@@VBAA2Z la vez pasada estaba haciendo el logo en un video tuyo, pegué el código y no funcionó...
@giancajaracadillo
@giancajaracadillo 4 года назад
sale como que: el codigo debe actualizarse para usarse en sistemas de 64 bits
@VBAA2Z
@VBAA2Z 4 года назад
@@giancajaracadillo Por favor revise este enlace. Tenga en cuenta que algunos controles de formulario, como ListView, no funcionan para Excel de 64 bits. vbaa2z.blogspot.com/2020/04/compile-error-code-in-this-project-must.html
@ilanbam
@ilanbam 3 года назад
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?
@VBAA2Z
@VBAA2Z 3 года назад
It is possible the header is snapshot and not text
@ilanbam
@ilanbam 3 года назад
@@VBAA2Z can you show me please how to write the code?
@VBAA2Z
@VBAA2Z 3 года назад
if snapshot we can't read data
@sajuts5635
@sajuts5635 4 года назад
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
@VBAA2Z
@VBAA2Z 4 года назад
In that case I guess you can extract all data to excel first and organize your table back. All the best! 3. Read all PDF Content using VBA ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uc6palG76Y8.html 4. Extract table from PDF using VBA ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uc6palG76Y8.html
@sajuts5635
@sajuts5635 4 года назад
@@VBAA2Z Thank you.. but i want to do the same without using Acrobat , am asking about making any changes in this code (code in this video) will help me????
@KhalilYasser
@KhalilYasser 4 года назад
Still waiting for the link my friend.
@VBAA2Z
@VBAA2Z 4 года назад
vbaa2z.blogspot.com/
@vg6119
@vg6119 3 года назад
Hi can you share the vba program and I have pdf exchange will it work on it?
@VBAA2Z
@VBAA2Z 3 года назад
This program can work without PDF Reader / Acrobat.
@vg6119
@vg6119 3 года назад
Thank you, do you have a copy of the program so that I can try it out
@vg6119
@vg6119 3 года назад
Also is there a way we can run a vba in excel and have a text or sentence inserted in pdf?
@VBAA2Z
@VBAA2Z 3 года назад
@@vg6119 yes, from any office application like excel, word etc. you'll need PDF Acrobat for that but if this is the pdf you're creating you can easily convert excel / word doc to pdf check this video. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-v-uxpc86wrw.html
@prathameshsutar3090
@prathameshsutar3090 4 года назад
Can you please send file link?
@VBAA2Z
@VBAA2Z 4 года назад
vbaa2z.blogspot.com/
@jalalkasmani2575
@jalalkasmani2575 3 года назад
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 ?
@VBAA2Z
@VBAA2Z 3 года назад
Have you tried this? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uc6palG76Y8.html
@jalalkasmani2575
@jalalkasmani2575 3 года назад
@@VBAA2Z I cannot see the reference used in video at my office laptop Excel.
@VBAA2Z
@VBAA2Z 3 года назад
This version uses Acrobat API, I'd recommend checking it from beginning.
@jalalkasmani2575
@jalalkasmani2575 3 года назад
@@VBAA2Z you are saying in the below video Acrobat API is used ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uc6palG76Y8.html
@VBAA2Z
@VBAA2Z 3 года назад
Yes, mostly.
@SantiagoMacias-jw6vk
@SantiagoMacias-jw6vk Месяц назад
word is converting everything in my pdf into an image, hel please
@VBAA2Z
@VBAA2Z 29 дней назад
snapshot doc cannot be read
@fatehsinghshekhawat9674
@fatehsinghshekhawat9674 3 года назад
Compile error user defined type not defined
@VBAA2Z
@VBAA2Z 3 года назад
May I know which line is causing this error?
@noahcastle9682
@noahcastle9682 2 года назад
You may have already figured it out. This happened to me when I typed wline.range.text in the for each loop Instead of wline = pg.range.text By mistake
Далее
Use Excel VBA to Read API Data
20:48
Просмотров 131 тыс.
It was like a real simulation👩🏻‍💻
00:15
Просмотров 2,4 млн
Rope climb tutorial !! 😱😱
00:22
Просмотров 2,2 млн
100 million nasib qilsin
00:18
Просмотров 645 тыс.
VBA to fill out PDF Forms - VBA PDF Automation-6
13:29
Use Python to replace VBA in Excel
16:58
Просмотров 372 тыс.
How to Extract Tables from PDF using Python
14:07
Просмотров 60 тыс.
Extract Specific Data from PDF to Excel
4:30
Просмотров 20 тыс.
5 VBA Hacks Everyone Should Know in 2021
11:20
Просмотров 89 тыс.
Собери ПК и Получи 10,000₽
1:00
Просмотров 2,1 млн