Macro Question

C

carl

Thought I would try a new post instead of trying to work on a previous one.

I am using this:

Sub temp()
Sheets("TMS").Select
Selection.AutoFilter Field:=1, Criteria1:=S, Operator:=xlAnd
Range("F1").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("CheckNamesSent").Select
Range("I4").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Range("A1").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End Sub

Note that 'Selection.AutoFilter Field:=1, Criteria1:=S, Operator:=xl' the
variable S needs definition.

I have a list in G6:G8. I need the above code to repeat for each value in
this list. Not sure how to do this (as it is important that the "S" value
also updates to reflect the next vlaue in the list - G6, G7,G8).

THank you in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Macro Prob 3
Macro Question 1
Excel 2003 Macro - Finding rows with data to copy 1
Pasting Variable cell info into a macro 1
Macro Question 1
Macro - Whats wrong? 4
Macro Problem 1
Macro for Costing 0

Top