Ok, this is how it works so far, I pull an invoice off the internet using adobe pdf (my only option as far as I know, there is no option on the website). I then convert the pdf to text format and import it into excel.
I have to pull specific information from each invoice in which I did in the code below:
Range("K8").Select
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C1:R95C8,MATCH(""FPL"",R6C1:R95C1,),MATCH(4,R6C1:R6C8,))"
Range("K8").Select
Selection.copy
Range("K9").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C2:R59C4,MATCH(""new"",R6C2:R59C2,),MATCH(4,R6C2:R6C4,))"
Range("K9").Select
Selection.copy
Range("K10").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C4:R58C5,MATCH(""owe"",R6C4:R58C5,),MATCH(5,R6C4:R6C5,))"
Range("K10").Select
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C4:R58C5,MATCH(""owe"",R6C4:R58C4,),MATCH(5,R6C4:R6C5,))"
Range("K10").Select
Selection.copy
Range("K11").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C4:R58C5,MATCH(""charges"",R6C4:R58C4,),MATCH(5,R6C4:R6C5,))"
Range("K11").Select
Selection.copy
Range("K12").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = ""
Range("K11").Select
Selection.copy
Range("K13").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C1:R81C3,MATCH(""kWh/day"",R6C1:R81C1,),MATCH(3,R6C1:R6C3,))"
Range("K13").Select
Selection.copy
Range("K14").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C1:R82C5,MATCH(""kWh"",R6C1:R82C1,),MATCH(5,R6C1:R6C5,))"
Range("K14").Select
Selection.copy
Range("K15").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R64C1:R76C5,MATCH(""kWh"",R64C1:R76C1,),MATCH(""may"",R64C1:R64C5,))"
Range("K15").Select
ActiveCell.FormulaR1C1 = _
"=INDEX(R64C1:R76C5,MATCH(""kWh"",R64C1:R76C1,),MATCH(""may"",R64C1:R64C5,))"
Range("K15").Select
Selection.copy
Range("K16").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R64C1:R76C5,MATCH(""Off-peak"",R64C1:R76C1,),MATCH(""require"",R64C1:R64C5,))"
Range("K16").Select
Selection.copy
Range("K17").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R64C3:R78C4,MATCH(""reading"",R64C3:R78C3,),MATCH(""require"",R64C3:R64C4,))"
Range("K17").Select
Selection.copy
Range("K18").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C1:R75C3,MATCH(""maximum"",R6C1:R75C1,),MATCH(3,R6C1:R6C3,))"
Range("K18").Select
Selection.copy
Range("K19").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C1:R78C2,MATCH(""kWh/day"",R6C1:R78C1,),MATCH(2,R6C1:R6C2,))"
Range("K19").Select
Selection.copy
Range("K20").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C1:R80C4,MATCH(""kWh"",R6C1:R80C1,),MATCH(4,R6C1:R6C4,))"
Range("K20").Select
Selection.copy
Range("K21").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C2:R18C3,MATCH(""Dates:"",R6C2:R18C2,),MATCH(3,R6C2:R6C3,))"
Range("K21").Select
Selection.NumberFormat = "@"
Range("K21").Select
ActiveCell.FormulaR1C1 = _
"=INDEX($B$6:$C$18,MATCH(""Dates:"",$B$6:$B$18,),MATCH(3,$B$6:$C$6,))"
Range("K21").Select
ActiveCell.FormulaR1C1 = _
"=INDEX($B$6:$C$18,MATCH(""Dates:"",$B$6:$B$18,),MATCH(3,$B$6:$C$6,))"
Range("K21").Select
ActiveCell.FormulaR1C1 = _
"=index($b$6:$c$18,match(""Dates:"",$b$6:$b$18,),match(3$b$6:$c$6,))"
Range("K21").Select
Selection.NumberFormat = "General"
Range("K21").Select
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C2:R18C3,MATCH(""Dates:"",R6C2:R18C2,),MATCH(3,R6C2:R6C3,))"
Range("K21").Select
Selection.NumberFormat = "m/d/yyyy"
Range("K23").Select
Selection.NumberFormat = "m/d/yyyy"
Range("K21").Select
Selection.copy
Range("K23").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C2:R18C5,MATCH(""Dates:"",R6C2:R18C2,),MATCH(3,R6C2:R6C5,))"
Range("K23").Select
ActiveCell.FormulaR1C1 = _
"=INDEX(R6C2:R18C5,MATCH(""Dates:"",R6C2:R18C2,),MATCH(5,R6C2:R6C5,))"
Range("K24").Select
End Sub
The problem is, it only works per invoice and I have 60 new invoices on a daily basis. The reason the macro was not set up for the seperation of the invoices is because the information is not lined up consistantly, each invoice varies. The macro will not work for information that is not consistant. I can send a copy of the macro for copy and paste of bill to copyright but this will not work for every invoice so it is not useful. I am very new to this and have never requested information or help through a forum, although I do read them. It is not easy to explain what is needed, this is a learning process. I guess I expected a simple answer, and assumed you could see and understand what I am looking for. I did not at any point want the code written for me, I simply needed to know, yes it can be done and through just using a macro or no I need to look elsewhere. I dont need a lot detail or code. If anyone felt my comment about assuming no one knows how to do this, then I appologize sincerely. Seems very touchy feely in here... I do appreciate your help if any, but I request that you are patient and understanding that we are not all good at explanation. Thanks