No, that line is used to populate data in a tab called OC and Range(i23) is the output file which is concatenated and constantly changes so there will never be any overlapping of the PDF files. Currently, when I do the following, it does not work. Any idea how I can alter this code? Thanks
Sub A()
Dim i As Integer
i = 0
Do Until i = 1000000000 'Or any other random large number that will never be met
Range("A1").Select
If ActiveCell.Offset(1, 0) = "" Then
Exit Sub
Else
Rows("2:2").Copy
Rows("1:1").Select
ActiveSheet.Paste
Rows("2:2").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
Sheets("FrontEndApp").Select
Worksheets("OC").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=Range("i23").Value, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
End If
Loop
End Sub
Bookmarks