M
Matt G
I wrote a line of commands in VB Editor for data that I enter i
"sheet1" to appear in "sheet2" in the exact order I want.
The Problem:
I want these commands to continue repeating as I continue to add dat
entries to "sheet1"
What am I missing? This appears so simple but I can't write a comman
line that will work.
Example:
Sub Duplicate1()
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
End
I want "sheet2" to continue in this format as I enter in rows of dat
on "sheet1"
I would appreciate any tips or advice.
Mb
"sheet1" to appear in "sheet2" in the exact order I want.
The Problem:
I want these commands to continue repeating as I continue to add dat
entries to "sheet1"
What am I missing? This appears so simple but I can't write a comman
line that will work.
Example:
Sub Duplicate1()
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
End
I want "sheet2" to continue in this format as I enter in rows of dat
on "sheet1"
I would appreciate any tips or advice.
Mb