harikris2013
Board Regular
- Joined
- May 3, 2013
- Messages
- 65
Hi,
I have 200 sheets of data in PDF file which needs to copy to 200 sheets in excel workbook
I need to use only acrobat reader 5.
I have below macro which is copying only one and pasting to sheet1
Please modify the below macro
Sub StartAdobe()
Dim AdobeApp As String
Dim AdobeFile As String
Dim StartAdobe
AdobeApp = "C:\Program Files (x86)\Adobe\Acrobat 5.0\Reader\AcroRd32.exe"
AdobeFile = "C:\Users\Dell\Desktop\Dead Men Tell No Tales.pdf"
StartAdobe = Shell("" & AdobeApp & " " & AdobeFile & "", 1)
Application.OnTime Now + TimeValue("00:00:05"), "FirstStep"
End Sub
Private Sub FirstStep()
SendKeys ("^a")
SendKeys ("^c")
Application.OnTime Now + TimeValue("00:00:10"), "SecondStep"
End Sub
Private Sub SecondStep()
AppActivate "Microsoft Excel"
Range("A1").Activate
SendKeys ("^v")
End Sub
I have 200 sheets of data in PDF file which needs to copy to 200 sheets in excel workbook
I need to use only acrobat reader 5.
I have below macro which is copying only one and pasting to sheet1
Please modify the below macro
Sub StartAdobe()
Dim AdobeApp As String
Dim AdobeFile As String
Dim StartAdobe
AdobeApp = "C:\Program Files (x86)\Adobe\Acrobat 5.0\Reader\AcroRd32.exe"
AdobeFile = "C:\Users\Dell\Desktop\Dead Men Tell No Tales.pdf"
StartAdobe = Shell("" & AdobeApp & " " & AdobeFile & "", 1)
Application.OnTime Now + TimeValue("00:00:05"), "FirstStep"
End Sub
Private Sub FirstStep()
SendKeys ("^a")
SendKeys ("^c")
Application.OnTime Now + TimeValue("00:00:10"), "SecondStep"
End Sub
Private Sub SecondStep()
AppActivate "Microsoft Excel"
Range("A1").Activate
SendKeys ("^v")
End Sub