PDF to Excel Converter in Excel VBA

Поділитися
Вставка
  • Опубліковано 5 жов 2024
  • #PDFtoExcel #VBA
    Hello Friends,
    In this video, you will learn how to create a PDF to Excel converter using Excel VBA.
    Click here to download the practice file:
    www.pk-anexcel...
    Download our free Excel utility Tool and improve your productivity:
    www.pk-anexcel...
    See our Excel Products:
    www.pk-anexcel...
    Visit to learn more:
    Chart and Visualizations: www.pk-anexcel...
    VBA Course: www.pk-anexcel...
    Download useful Templates: www.pk-anexcel...
    Dashboards: www.pk-anexcel...
    Watch the best info-graphics and dynamic charts from below link:
    • Dynamic Graphs
    Learn and free download best excel Dashboard template:
    • Excel Dashboards
    Learn Step by Step VBA:
    • VBA Tutorial
    Website:
    www.PK-AnExcel...
    Facebook:
    / pkanexcelexpert
    Telegram:
    t.me/joinchat/...
    Pinterest:
    / pkanexcelexpert
    ************ Suggested Books ********
    VBA: amzn.to/2TMMikX
    Excel Dashboard: amzn.to/2WZi2Fj
    Power Query: amzn.to/2Ibd7xR
    Power Pivot and Power BI: amzn.to/2DCg8BB
    Exam Ref 70-778 (Power BI): amzn.to/2GnWYTN
    ************ My Stuff ***************
    Mic : amzn.to/2TLnF88
    Video Editor: screencast-o-m...
    Laptop: amzn.to/2PlFFFz

КОМЕНТАРІ • 207

  • @demetriusoatis8474
    @demetriusoatis8474 5 років тому +2

    This tool is a LIFE SAVER!!!!. I was burdened to convert signed PDFs into excel...easier said than done. Until now! Thank you. Thank you. Thank you!

  • @JinBad09
    @JinBad09 3 роки тому +1

    OMG blown away with this! Excellent! I am getting messages saying "Waiting for OLE in WORD" So I have to click "Switch" at the prompt..however the automated conversion worked! I am so impressed! :)

    • @PKAnExcelExpert
      @PKAnExcelExpert  3 роки тому +1

      Thanks for your valuable feedback

    • @sardarali3737
      @sardarali3737 2 роки тому

      Please solove the error (microsoft Excel is waiting for another application to complete an OLE action) please solove this error

  • @saikarlsass710
    @saikarlsass710 4 роки тому +1

    Hello Sir,
    all I can say is that your solution is much better than the most commercial pdf converter on the internet. Most of them converting information using more than one cell or the do use connected cells. Your convertion use always one cell, an that is what I need to have.
    Thank you, you are really an expert :-).

  • @lwmoffice5499
    @lwmoffice5499 Рік тому +1

    Thanks PK!! this VBA so amazing... almost like OCR and imprint into excel table nicely and properly! Appreciate the sharing!

  • @sankarganeshk23
    @sankarganeshk23 4 роки тому +1

    Definitely you are 💯% genius in Excel

  • @analy5280
    @analy5280 5 років тому +1

    Thank you for always making videos about excel. All your videos were awesome and such a BIG help to me.

  • @mohamedel-hanfy9140
    @mohamedel-hanfy9140 4 роки тому +1

    What you did is great, creative. All respect for you from Egypt

  • @p.n.unnikrishnan6659
    @p.n.unnikrishnan6659 3 роки тому +1

    It is wonderful. Thanks for your efforts and skill in explaining. god bless you.

  • @ankitrahaman593
    @ankitrahaman593 4 роки тому +1

    Thanks a lot...It works like magic :)
    Just as an edit to your code.. I would like to mention that in order to make this work seemlessly without opening the Word application..in the code..change these lines.
    wa.Visible = False
    doc.Close True
    nwb.Close True

  • @karmegammariappan9115
    @karmegammariappan9115 4 роки тому +3

    Hi, Macro is working but output is not readable and format also not match with original pdf file.

  • @Josivis
    @Josivis 3 роки тому +1

    Thank you it helped me a lot extracting Data from PDF

  • @rrawat9026
    @rrawat9026 4 роки тому +1

    Thanks for sharing such a helpful code.. I was searching this for a long time and I thought.. It's not possible.. Through VBA.. And ur code is working like a charm.. Thanks again..

    • @PKAnExcelExpert
      @PKAnExcelExpert  4 роки тому

      Thanks for your valuable feedback

    • @rrawat9026
      @rrawat9026 4 роки тому

      @Abdallah khairy have u paste a code in VBA enabled excel... Make sure excel file extension should be ".xlsm" And reference Library should checked...

  • @131HITOMI
    @131HITOMI 3 роки тому +1

    Thank you SO MUCH! this is really helpful to improve my tasks. also its good to learn for me. Thanks!

  • @MK-jn9uu
    @MK-jn9uu 5 років тому +4

    THIS IS LIKE MAGIC! THANK YOU SO MUCH

  • @pankajsinghal4590
    @pankajsinghal4590 3 роки тому +2

    Sir, how to convert PDF to Excel without loosing formatting. Could you suggest

  • @toufiktn5347
    @toufiktn5347 4 роки тому +1

    but does not work with excel 2010 and pdf Adobe Acrobat Reader DC

  • @angelom.9818
    @angelom.9818 4 роки тому +1

    Thank you for your generosity in sharing these codes in your channel. Congratulations. By any reason I unknow the converted xlsx file has a lot of chinese chars begining with %PDF-1.4.....%忏嫌.....4 0 obj..... and so on. I tried to uncomment the lines you replace but I did not succed. Searching the net I found that it is concerning to a UTF-8 converting or something like that. Do you have any idea how this can be solved? Thanks again.

  • @aceace4917
    @aceace4917 3 роки тому +1

    Hi! I am encountering a problem with "Paste of object worksheet failed" for nsh.Paste. Can somebody help me please?

  • @LoneIcon
    @LoneIcon 3 роки тому

    Thanks...
    But i wonder how does it look inside the Excel after converting from PDF -> XLSX

  • @sudhakarb1390
    @sudhakarb1390 4 роки тому +3

    Code not Running showing massage as"Runtime error 1004 _ Microsoft Excel cannot past the data"

    • @premgjakka2700
      @premgjakka2700 Рік тому

      Hello
      Did u get the solution for this. If yes then pls share
      Hi all
      Pls anyone can help on above error

  • @rodrigorossi3613
    @rodrigorossi3613 4 роки тому

    Show de bola.
    Me ajudou muito...
    Seus vídeos estão ajudando até o Brasil.
    Valew....

    • @grsnoliveira77
      @grsnoliveira77 2 роки тому

      Boa tarde!
      Deu certo o código? Funciona?
      Tentei e deu erro no caminho

  • @Mekos1214
    @Mekos1214 Рік тому

    Hello, I would like to thank you alot for your effort, but I have a problem with the code. "Set fo = fso.GetFolder(pdf_path)
    "

    • @PKAnExcelExpert
      @PKAnExcelExpert  Рік тому

      This error usually occurs when the "fso" object is not properly initialized or when the "pdf_path" variable is not set to a valid folder path

  • @kashifkhanspecial
    @kashifkhanspecial 5 років тому +1

    very very good just awesome trick.. Thank you very much for this trick

  • @wkchow492
    @wkchow492 4 роки тому +3

    Hello i having problem, run time error 9, subscript out of range. Kindly help on this error. Thx

  • @wmnkmr
    @wmnkmr 4 роки тому +1

    Great tutorial, very helpful! This is exactly what I needed! Thanks

  • @piotrbyrski7095
    @piotrbyrski7095 2 роки тому +1

    You are a genius!

  • @hannesswart3451
    @hannesswart3451 2 роки тому +1

    Awesome! Works perfectly thanks!

  • @md-mohammed8455
    @md-mohammed8455 Рік тому

    Sir , in my case , I have scanned PDF file ,
    I want to copy specific text to excel from each page of scanned PDF/ PDF.
    Text sample: xxxxx-xxx-xxx-IR-xxxxx
    I know only IR is fix for each page text, before and after I don't know text, but I want complete text copy to excel.
    Hope you understand sir
    Thanks,

  • @DZ-fc1lo
    @DZ-fc1lo 4 роки тому

    That was very clear. Even a person who don't know coding like me also be able to understand. Can u share video on how to extract image format pdf to excel?

  • @Tat-cx1lr
    @Tat-cx1lr 3 роки тому

    Merci beaucoup. C’est génial. Amicalement

  • @bannochang
    @bannochang 2 роки тому

    Sir , do u take any class to teach VBA . I need to learn Macro and VBA .Please let know.

  • @ibraheemmshezad400
    @ibraheemmshezad400 4 роки тому +1

    very nice sir it is very amazing video

  • @blooomoon1299
    @blooomoon1299 2 роки тому

    Dear sir, Thanks for your video. (1)But it is not clear how to link my folders of input & output folders. What to change in VBA module? (2) Where to save this VBA file? please give little details.

  • @khengloonglim9299
    @khengloonglim9299 2 роки тому

    Thanks for the great tool! But it doesn't work some time when it comes to the script part of "Set fo = fso.GetFolder(pdf_path)", "Path not found" error message, my PDF did store under "C:\Users\12345\OneDrive - XXX Company\Desktop\Test", could it be due to one drive impacting the performance?

    • @fishfoot123
      @fishfoot123 2 роки тому

      Same error here i have got it, have you got the solution for this...? Please share if you got the solution

  • @karishmachauhan7641
    @karishmachauhan7641 4 місяці тому

    But I cannot link settings sheet with created vba code can you please upload formatting video as well

  • @rajadolisitumorang1095
    @rajadolisitumorang1095 Рік тому

    Sir, so it doesn't convert the scanned image into table?

  • @vinodwaghmare1111
    @vinodwaghmare1111 2 роки тому

    I just want to know , How do I copy a specific text from a PDF and paste it in Excel - specific cell using VBA macros?

  • @bradleyjohnson3624
    @bradleyjohnson3624 4 роки тому

    Awesome! Is there a way to set certain areas on the pdf to copy from? I'm trying to copy and paste from numerous pdf files that are the exact same format.

  • @subhasisbera26
    @subhasisbera26 Рік тому

    Liked the impossible video. Thanks a lot for uploading such an instructive video. But there is one thing that is a little difficult for me to understand, that is how to do the PDF path and excel path that is showing the code such as E drive or F drive. Another thing is that it is better if the tool reference codes are separated, it is a little convenient. After giving the code the run time error is being seen. I know you may be very busy, it is better if you clear it with the reply. It would be great if you could explain a little bit please.

    • @fernandomorales3864
      @fernandomorales3864 Рік тому

      you found the solution?, i have a erro in the part of the code "Set nsh = nwb.Sheets(1)",

  • @sandeshramaswamy9576
    @sandeshramaswamy9576 4 роки тому

    good approach.. I need to know who to extract particular table value from PDF to excel sheet.?

  • @sudsn1532
    @sudsn1532 3 роки тому

    Thank you for your video. However, I'm getting an "Subscript out of range (Error 9)" and the line code is on this line, "Set setting_sh = ThisWorkbook.Sheets("Setting")"

  • @ayeshasarwar615
    @ayeshasarwar615 3 роки тому

    What is the accuracy rate of this functionality? There are 0 errors in spellings and data conversion from pdf to text?

  • @prasenjitmandal5486
    @prasenjitmandal5486 3 роки тому +1

    Excellent Sir

  • @rapascoo
    @rapascoo 2 роки тому

    Excellent Sir! Can I ask a question. Can the same be done through One note (desktop) as the OCR is better?

  • @rezmun
    @rezmun 4 роки тому

    thank you for the nice work. i have a query. what is needed to convert a specific pdf not all.

  • @ORANGEPICTURESOFFICIAL
    @ORANGEPICTURESOFFICIAL 5 років тому +2

    Thank you for accepting my request and done video. Tq u so much sir.

  • @vladster8236
    @vladster8236 10 місяців тому

    Converter is working perfect, but when it gets big pdf with like 300 pages "microsoft excel is waiting for another application to complete an ole action" error appears. I've tried to do something with settings and it didn't help. Application.wait and Application.DisplayAlerts = False didn't help also.
    Is there anything that I can do or these files just too big?

  • @mineshsoni6126
    @mineshsoni6126 Рік тому

    Sir, you have prepared exactly what i was looking for... Thank you for your help.. But Sir.. I am facing one problem while debug, i found that it creates word doc and copy all the data of PDF file into Word doc file, but after that it shows the error of -"RUN TIME ERROR - 424 " OBJECT: REQUIRED" Can you please guide how can i resolve this issue Please guide .. Thank you.

  • @shrachichaudhary3791
    @shrachichaudhary3791 4 роки тому

    Can we specify the page that we want to convert if it is a large PDF?

  • @vasavajaykar5521
    @vasavajaykar5521 4 роки тому

    Sir. Without open word file.. Can we open pdf and directly copy from pdf and past in excel? Please help sir.

  • @SD-gx7uk
    @SD-gx7uk 5 років тому +1

    Awesome works great for me. Thank you for sharing!

  • @GUSPM7
    @GUSPM7 3 роки тому +2

    Great, thanks

  • @anoopbisht1
    @anoopbisht1 3 роки тому +1

    very useful code....thanks

  • @priyanthagamini3860
    @priyanthagamini3860 2 роки тому

    Sir, great job, 👍 👌 👏 please explain how to rename pdf files using content in files as Invoice number, ID number ect.. vba or other methord

  • @mohamedzeed2129
    @mohamedzeed2129 5 років тому

    Could you please work on a VBA series for beginners

  • @ashutoshkaslikar1695
    @ashutoshkaslikar1695 3 роки тому

    Hello I am using Excel 2013 and MS office 2010 msg occur Microsoft Excel waiting for another application to complete an OLE action

  • @jeevasankar5390
    @jeevasankar5390 3 роки тому

    Hi sir,
    I use this file. Some file is probably convert to excel and some files not convert please support how to convert all pdf files.

  • @waisbaraki9614
    @waisbaraki9614 3 місяці тому

    It doesn't work properly. I converted a normal PDF, not an image, and it converted to strings, not values in cells. While Adobe converter converted it totally fine, so I could use the Excel file for further analysis.

  • @praveenkishor4396
    @praveenkishor4396 4 роки тому

    Hi ,
    I am using this code but getting error in "Dim aApp As Acrobat.AcroApp" And added reference "Scripting Runtime" also ..please suggest me ....error Type "User-Defined type not defined"

  • @smf4399
    @smf4399 3 роки тому

    I am getting an error "Object doesn't support this property or method" . please help. Thanks!

  • @Max-qu7pr
    @Max-qu7pr 4 роки тому

    nice video, do u have any idea how to convert specific sites of the pdf to excel? like if the pdf has 10 sites, but i only need 4-6 for example. ive already been struggling all day with this, but couldnt get it to work still

  • @priyanthagamini3860
    @priyanthagamini3860 2 роки тому

    sir i try this but after converting data not set with original format in the excel file how solve this issu.

  • @Anmoljeevan1819
    @Anmoljeevan1819 4 роки тому

    Hi sir how to change code if I want only the first page to be converted to excel

  • @mayurbari4346
    @mayurbari4346 2 роки тому

    Pdf file ko filter laga sakte hai kya?

  • @minhnguyennhat3547
    @minhnguyennhat3547 4 роки тому +1

    works perfectly, thanks a lottt!!!

  • @ameerpatait2066
    @ameerpatait2066 2 роки тому

    for me the converter giving images table, could you please solve it?

  • @apurvamaheshwari8025
    @apurvamaheshwari8025 2 роки тому

    How to convert pdf with comments to excel using VBA? Please help urgently if possible

  • @nicolasv7549
    @nicolasv7549 4 роки тому +1

    run time error 9, could u pls help?

  • @satyamsharma4663
    @satyamsharma4663 5 років тому

    i m using ms2007, but its not working here , does it require 10 or 13?
    need help

  • @vasavajaykar5521
    @vasavajaykar5521 5 років тому

    Sir. I want to know that if it is possible that without opened we can convert pdf into excel. What will be the vbs cords for that.. Please help.. Sir

  • @agrisreppo9001
    @agrisreppo9001 3 роки тому +1

    Thank you, you Pro Bro :D

  • @thiagoleite1220
    @thiagoleite1220 4 роки тому +1

    Excellent!!!!

  • @jenimerlin1907
    @jenimerlin1907 3 роки тому

    Can i convert image text pdf file into excel???

  • @Hanan_athaya
    @Hanan_athaya 3 місяці тому

    why is it still a pdf file after using this VBA formula?

  • @nidnac1
    @nidnac1 4 роки тому

    Working... But output is an image.. How to resolve this

  • @anmoljethanandani2279
    @anmoljethanandani2279 2 роки тому

    i need to convert some files can you help me

  • @piusokoh4267
    @piusokoh4267 4 роки тому +1

    I tried running this macro on a 2016 Excel but it didn't work: error message " user- defined type not defined". For
    Dim fso As New FileSystemObject

    • @PKAnExcelExpert
      @PKAnExcelExpert  4 роки тому

      Make sure you have added reference "Scripting Runtime" in your VBA project

    • @aperson1181
      @aperson1181 4 роки тому

      @@PKAnExcelExpert How do you do this?

  • @aravindanu9998
    @aravindanu9998 4 роки тому

    Showing the error "user-defined type not defined plz give the solution

  • @raghavendrayemineni55
    @raghavendrayemineni55 4 роки тому +1

    Please send that PDF_excel converter workbook which you have developed

    • @PKAnExcelExpert
      @PKAnExcelExpert  4 роки тому

      Download link has been given in videos discretion box. Please download this excel file from there

  • @rupeshhadimani894
    @rupeshhadimani894 4 роки тому

    HELLO SIR
    HOW SHOULD CREATE INPUT PATH AND OUTPUT PATH IN EXCEL FILE
    THANKS

  • @ParadiseRS1234
    @ParadiseRS1234 5 років тому +1

    it's not complete
    how to create (start converter)

  • @parthgoswami8681
    @parthgoswami8681 4 роки тому +1

    Thank you for the code🙏🙏

  • @k4b6stuff85
    @k4b6stuff85 4 роки тому

    Hello can you also teach us how to convert scan pdf to excel please
    Thank you in advance

  • @ashwinisg7012
    @ashwinisg7012 Рік тому

    Hello Sir, I'm getting error in wa.Visible = True. Please help me to fix this

  • @agk1109
    @agk1109 2 роки тому

    Hello sir,
    I am getting this error ,i m not clear about it.
    Set fo = fso.GetFolder(pdf_path)

    • @fishfoot123
      @fishfoot123 2 роки тому

      Hi, have you got the solution for this..?

  • @velusamyd9319
    @velusamyd9319 3 роки тому

    Working good In newodel excel, butnot in 10, please do for that also

  • @mohdshahbax1432
    @mohdshahbax1432 Рік тому

    Sir where will get the file

  • @SKS_learn
    @SKS_learn 5 років тому +1

    Hi dear, is there any opportunity so you can share files also with us

    • @PKAnExcelExpert
      @PKAnExcelExpert  5 років тому

      File download link has been given in videos discretion box. Please download this excel file from there.

  • @anjaligoorha3180
    @anjaligoorha3180 5 років тому

    Thnaks for uploading so much knowledge , could you please help me in coding to extract data from mainframe to excel via vba..

  • @nagavalliss
    @nagavalliss 3 роки тому

    Getting error method paste object worksheet failed. Please help

  • @manoharrajput8660
    @manoharrajput8660 Рік тому

    I am using excel 2016
    While run macro facing issue and received Run-time error '9'
    Subscript out of range
    While debug
    Below line highlighted in yellow color
    Set setting_sh = Thisworkbook.Sheets("Setting)

    • @PKAnExcelExpert
      @PKAnExcelExpert  Рік тому

      Put this as Set setting_sh = Thisworkbook.Sheets("Setting") not Set setting_sh = Thisworkbook.Sheets("Setting)

    • @ionelmagureanu8776
      @ionelmagureanu8776 Місяць тому

      @@PKAnExcelExpert hello. thanks for your code but I have the same problem. I already change the code like you say

  • @shoryaarora1464
    @shoryaarora1464 5 років тому +1

    It’s nice 👍🏻

  • @basithyusuf5817
    @basithyusuf5817 2 роки тому

    Helo Sir How to Make setting Sheet first please tell me

  • @Uday123ch
    @Uday123ch 4 роки тому

    its not coming properly .. Bro can you please help me out on this

  • @luismoreira9833
    @luismoreira9833 4 роки тому

    Hello, I am having
    Run-time error '5132':
    Word cannot start the converter
    Can you give a hand with this?
    Thank you in advance.

  • @pavankumar-mm7kp
    @pavankumar-mm7kp 4 роки тому

    Hi Sir thank you for this code but when I run in my system. Language and format is not coming correctly

  • @gbharadwaja9621
    @gbharadwaja9621 4 роки тому

    Thank you :) This code works

  • @hariomgupta4677
    @hariomgupta4677 5 років тому

    How can create own shortcuts key in excel

  • @ShINy_783
    @ShINy_783 3 роки тому

    Dear sir it is possible to convert PDF to txt

  • @ravishekharsingh178
    @ravishekharsingh178 4 роки тому

    I am not able to open pdf file word 2010. Its showing some symbol after conversion. Pls Help

    • @Thunderin11
      @Thunderin11 4 роки тому

      It doesn't work in Word 2010. I tried it also and there is a problem with the encoding. But I tested with Word 2016 and it worked, although the conversion process is extremely slow.