Hi,
i want to make a macro with a if formula that takes a value and placed it on the right row every row got's a specific date.
this is what i got so far:
If Sheets("Data").Range("A2") = "1" Then Sheets("Numpay").Range("F312").Copy
Sheets("3C").Select
Range("D12").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'other date:
If Sheets("Data").Range("A2") = 2 Then Sheets("Numpay").Range("F312").Copy
Sheets("3C").Select
Range("F12").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'the sheet data range A2 = the day
'in the sheet numpay are placed the values.
'sheets 3c is the sheet where it needs to be placed.
im working in excel 2003
greetz
i want to make a macro with a if formula that takes a value and placed it on the right row every row got's a specific date.
this is what i got so far:
If Sheets("Data").Range("A2") = "1" Then Sheets("Numpay").Range("F312").Copy
Sheets("3C").Select
Range("D12").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'other date:
If Sheets("Data").Range("A2") = 2 Then Sheets("Numpay").Range("F312").Copy
Sheets("3C").Select
Range("F12").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'the sheet data range A2 = the day
'in the sheet numpay are placed the values.
'sheets 3c is the sheet where it needs to be placed.
im working in excel 2003
greetz