I need help writing a sub routine for my program in excel. What I am trying to do is take information from one sheet (Bar code master) and fill it in to another sheet(Template). I recorded a macro and that got me to the point of copying and pasting info. On the bar code master sheet I have the range of bar codes listed with the beginning number in a cell in column A, and the ending number in a cell in column B. I want to take the starting number and copy it into cell A4 on the template and fill it down until it equals the ending number of the bar codes. Also on the bar code master the location of where it takes the starting number I want it to always be the last populated cell in Row A and B. Here is what I have so far. please help. Thanks
Sub Macro9()
// Macro9 Macro
// Macro recorded 7/30/2010 by Christina
Sheets("barcode master").Select
Range("D648").Select
Selection.Copy
Sheets("barcode template").Select
Range("F1").Select
ActiveSheet.Paste
Sheets("barcode master").Select
Range("E648").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("barcode template").Select
Range("J1").Select
ActiveSheet.Paste
Sheets("barcode master").Select
Range("F648").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("barcode template").Select
Range("B1").Select
ActiveSheet.Paste
Sheets("barcode master").Select
Range("A648").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("barcode template").Select
Range("A4").Select
ActiveSheet.Paste
Range("a5").Value = Range("a4") + 1
End Sub