Thank you Sir, but kindly also tell me the steps how I use???? On Fri, Mar 8, 2013 at 12:50 PM, NOORAIN ANSARI <noorain.ans...@gmail.com>wrote:
> Dear Shahzad, > > > Please try it.. > > > > Sub ImportPDFFileData() > 'Author: Steve Lipsman > 'Purpose: Import PDF File Data Into Excel Worksheet > 'Other Requirement(s): 'Acrobat' Checked in VBA Tools-References > 'Reference Renames Itself 'Adobe Acrobat 9.0 Object Library' After > Reference Is Saved > > 'Declare Variable(s) > Dim appAA As Acrobat.CAcroApp, docPDF As Acrobat.CAcroPDDoc > Dim strFileName As String, intNOP As Integer, arrI As Variant > Dim intC As Integer, intR As Integer, intBeg As Integer, intEnd As Integer > > 'Initialize Variables > Set appAA = CreateObject("AcroExch.App"): Set docPDF = > CreateObject("AcroExch.PDDoc") > > 'Set PDF FileName > strFileName = "Your Full PDF File Pathname Here.pdf" > > 'Read PDF File > docPDF.Open (strFileName) > > 'Extract Number of Pages From PDF File > intNOP = docPDF.GetNumPages > > 'Select First Data Cell > Range("A1").Select > > 'Open PDF File > ActiveWorkbook.FollowHyperlink strFileName, , True > > 'Loop Through All PDF File Pages > For intC = 1 To intNOP > 'Go To Page Number > SendKeys ("+^n" & intC & "{ENTER}") > > 'Select All Data In The PDF File's Active Page > SendKeys ("^a"), True > > 'Right-Click Mouse > SendKeys ("+{F10}"), True > > 'Copy Data As Table > SendKeys ("c"), True > > 'Minimize Adobe Window > SendKeys ("%n"), True > > 'Paste Data In This Workbook's Worksheet > ActiveSheet.Paste > > 'Select Next Paste Cell > Range("A" & Range("A1").SpecialCells(xlLastCell).Row + 2).Select > > 'Maximize Adobe Window > SendKeys ("%x") > Next intC > > 'Close Adobe File and Window > SendKeys ("^w"), True > > 'Empty Object Variables > Set appAA = Nothing: Set docPDF = Nothing > > 'Select First Cell > Range("A1").Select > End Sub > > also weblink......... > > http://www.pdftoexcelonline.com/ > http://www.onlineocr.net/ > http://www.cometdocs.com/ > http://www.coolutils.com/Online-Excel-Converter.php > http://document.online-convert.com/convert-to-pdf > http://www.pdfconverter.com/ > http://www.freepdfconvert.com/ > > http://www.simpleocr.com/OCR_Software/Convert_Image/convert_image_to_Excel.asp > > > > > On Fri, Mar 8, 2013 at 1:02 PM, Aamir Shahzad <aamirshahza...@gmail.com>wrote: > >> Dear group, >> >> Is there any way to convert the PDF file to excel by MACRO. >> >> Regards, >> Aamir Shahzad >> >> -- >> >> -------------------------------------------------------------------------------------------------- >> To post to this group, send email: >> excelvbacli...@googlegroups.com >> To unsubscribe from this group, send email >> excelvbaclinic+unsubscr...@googlegroups.com >> >> For more options, visit this group at >> http://groups.google.com/group/excelvbaclinic?hl=en?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Excelvbaclinic" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to excelvbaclinic+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > With Regards, > Noorain Ansari > http:// > <http://www.noorainansari.com/>noorainansari.com<http://www.noorainansari.com/> > http:// > <http://www.excelvbaclinic.blogspot.com/>excelvbaclinic.com<http://www.excelvbaclinic.blogspot.com/><http://accesssqclinic.blogspot.in/> > > -- > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ > https://www.facebook.com/discussexcel > > FORUM RULES > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > 2) Don't post a question in the thread of another member. > 3) Don't post questions regarding breaking or bypassing any security > measure. > 4) Acknowledge the responses you receive, good or bad. > 5) Jobs posting is not allowed. > 6) Sharing copyrighted material and their links is not allowed. > > NOTE : Don't ever post confidential data in a workbook. Forum owners and > members are not responsible for any loss. > --- > You received this message because you are subscribed to the Google Groups > "MS EXCEL AND VBA MACROS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to excel-macros+unsubscr...@googlegroups.com. > To post to this group, send email to excel-macros@googlegroups.com. > Visit this group at http://groups.google.com/group/excel-macros?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Regards, Aamir Shahzad -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en. For more options, visit https://groups.google.com/groups/opt_out.