I'm making a program for a Photography company to help them keep track of theres invoices. On the Invoice sheet, after an invoice is completed, I want to select certain cells and have them posted in the Records sheet. I tried recording a basic macro but every time I run it, it replaces the information in the same row instead of the following empty row.
I really need to get this done, it's one of that last parts I have. Here's the code now:
Sub record()
'
' record Macro
'
'
Selection.Copy
Range("B1").Select
Sheets("Records").Select
Range("A3").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Invoice").Select
Range("E1").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Records").Select
Range("C3").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Invoice").Select
Range("E2").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Records").Select
Range("D3").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Invoice").Select
Range("B3").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Records").Select
Range("B3").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Invoice").Select
ActiveWindow.SmallScroll Down:=7
Range("F20").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Records").Select
Range("E3").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub
thanks
I really need to get this done, it's one of that last parts I have. Here's the code now:
Sub record()
'
' record Macro
'
'
Selection.Copy
Range("B1").Select
Sheets("Records").Select
Range("A3").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Invoice").Select
Range("E1").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Records").Select
Range("C3").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Invoice").Select
Range("E2").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Records").Select
Range("D3").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Invoice").Select
Range("B3").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Records").Select
Range("B3").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Sheets("Invoice").Select
ActiveWindow.SmallScroll Down:=7
Range("F20").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Records").Select
Range("E3").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub
thanks
