Hi Frank-
Now that I think about it, I would not open a file with macros either.
I posted the below from my VB editor. I have been playing around wit
it in various ways. I read in a reference book that I can make an
line function continuous but have not been successful with any of th
commands variations I have tried.
Any suggestions would be helpful. I do not mind experimenting wit
different ideas but so if you can point me in a direction that yo
think may work I can start there.
AS you can probably tell by my basic VB work that I am relatively ne
at this. However I am learning so much right now and hope to be mor
functional in VBA in the near future.
Once again Frank I appreciate any comments or suggestions.
cheers,
matt, sf
Sub Duplicate1()
Range("A2").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-0]C"
Range("A3").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-1]C"
Range("A4").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-2]C"
Range("A5").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-3]C"
Range("A5").Select
Range("B2").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-0]C"
Range("B3").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-1]C"
Range("B4").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-2]C"
Range("B5").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-3]C"
Range("B5").Select
Range("C2").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-0]C"
Range("C3").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-1]C"
Range("C4").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-2]C"
Range("C5").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-3]C"
Range("C5").Select
Range("D2").Select
ActiveCell = 100
Range("D3").Select
ActiveCell = 110
Range("D4").Select
ActiveCell = 120
Range("D5").Select
ActiveCell = 130
Range("D5").Select
Range("E2").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-0]C"
Range("E3").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-1]C"
Range("E4").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-2]C"
Range("E5").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-3]C"
Range("E5").Select
Range("F2").Select
ActiveCell.FormulaR1C1 = "No Sales Order"
Range("F3").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-1]C"
Range("F4").Select
ActiveCell.FormulaR1C1 = "No Sales Order"
Range("F5").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-3]C"
Range("F5").Select
Range("G2").Select
ActiveCell.FormulaR1C1 = "ARJE"
Range("G3").Select
ActiveCell.FormulaR1C1 = "REX_1"
Range("G4").Select
ActiveCell.FormulaR1C1 = "ARJE"
Range("G5").Select
ActiveCell.FormulaR1C1 = "REX_1"
Range("G5").Select
Range("H2").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-0]C"
Range("H3").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-1]C"
Range("H4").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-2]C"
Range("H5").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-3]C"
Range("H5").Select
Range("I2").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-0]C*-1"
Range("I3").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-1]C"
Range("I4").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-2]C*1"
Range("I5").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-3]C*-1"
Range("I5").Select
Range("J2").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-0]C"
Range("J3").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-1]C"
Range("J4").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-2]C"
Range("J5").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-3]C"
Range("J5").Select
Range("K2").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-0]C*-1"
Range("K3").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-1]C"
Range("K4").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-2]C"
Range("K5").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-3]C*-1"
Range("K5").Select
Range("L2").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-0]C"
Range("L3").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-1]C"
Range("L4").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-2]C"
Range("L5").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-3]C"
Range("L5").Select
Range("M2").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-0]C"
Range("M3").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-1]C"
Range("M4").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-2]C"
Range("M5").Select
ActiveCell.FormulaR1C1 = "=Entry!R[-3]C"
Range("M5").Select
Range("N2").Select
Selection.NumberFormat = "dd-mmm-yy"
ActiveCell = "=Entry!N2"
Range("N3").Select
Selection.NumberFormat = "dd-mmm-yy"
ActiveCell = "=Entry!N2"
Range("N4").Select
Selection.NumberFormat = "dd-mmm-yy"
ActiveCell = "=Entry!O2"
Range("N5").Select
Selection.NumberFormat = "dd-mmm-yy"
ActiveCell = "=Entry!O2"
Range("N5").Select
Range("O2").Select
ActiveCell = "=Entry!P2"
Range("O3").Select
ActiveCell = "=Entry!P2"
Range("O4").Select
ActiveCell = "=Entry!P2"
Range("O5").Select
ActiveCell = "=Entry!P2"
Range("O5").Select
Range("P2").Select
ActiveCell = "=Entry!Q2"
Range("P3").Select
ActiveCell = "=Entry!Q2"
Range("P4").Select
ActiveCell = "=Entry!Q2"
Range("P5").Select
ActiveCell = "=Entry!Q2"
Range("P5").Select
End Sub