I'm extremely new to this and most off my codes have come from recording.
I'm trying to complete a basic search using a filter box and then copy the cells onto a different work sheet ready to start again.
This is the macro I recorded, the problem I keep having is rather than "copy what is in Cell B7 in places the contents of what I record in the macro....="=meal", I need this to be Cell B7 from the concur expenses tab?
Sub MySub()
Range("A13:G36").Select
Selection.ClearContents
Range("B7").Select
Selection.Copy
Sheets("Detail for selection").Select
ActiveSheet.Range("$A$1:$F$55").AutoFilter Field:=6, Criteria1:="=*meal*", _
Operator:=xlAnd
Application.CutCopyMode = False
Selection.Copy
Sheets("Concur Expenses").Select
Range("A12").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Detail for selection").Select
ActiveSheet.Range("$A$1:$F$55").AutoFilter Field:=6
Sheets("Concur Expenses").Select
Cells.Select
Cells.EntireColumn.AutoFit
Range("B7").Select
End Sub
Any helps greatly appreciated,
Thanks