Hello, my problem is as follows:
On tab 1 I have a list of questionnaire responses for 8000 customers. So the 20 questions are listed across the columns, and the customers (1-8000) are listed down the rows w/ their responses to each question.
On tab 2 I have the same list of questions and a set of cells where one customer's responses can be filled in. When these cells are filled, a lot of formula logic is performed and on my last tab I get a result of what "segment" the customer falls into. The result is then pasted back onto the fist tab with the associated customer.
I have no problems with my formula logic, and I can create the macro for one customer:
Sub Cut_Paste_Responses()
'
' Cut_Paste_Responses Macro
' Macro recorded 3/15/2004 by elizabeth.l.boal
'
'
Sheets("Questionnaire Response Capture").Select
Range("E4:BJ4").Select
Selection.Copy
Sheets("Questionnaire Response").Select
Range("D4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets("Segment").Select
Range("D2").Select
Selection.Copy
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Questionnaire Response Capture").Select
Range("BP4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets("Segment").Select
Range("F2").Select
Application.CutCopyMode = False
Selection.Copy
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Questionnaire Response Capture").Select
Range("BQ4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End
What I would like to do now is loop back through the formula so it takes the responses from the 2nd customer on tab 1, pastes them into tab 2, retrieves the segment result, and then pastes that result back next to customer 2's responses. Then do this same thing for 3, 4, 5,....8000. I can figure out how to loop the macro, but I don't know how to update the macro to tell it to skip to the next row every time and paste the result in that next row. Basically the macro above has to change for each customer.
I'm sorry if I didn't explain this well. Hope someone can help!
Liz
On tab 1 I have a list of questionnaire responses for 8000 customers. So the 20 questions are listed across the columns, and the customers (1-8000) are listed down the rows w/ their responses to each question.
On tab 2 I have the same list of questions and a set of cells where one customer's responses can be filled in. When these cells are filled, a lot of formula logic is performed and on my last tab I get a result of what "segment" the customer falls into. The result is then pasted back onto the fist tab with the associated customer.
I have no problems with my formula logic, and I can create the macro for one customer:
Sub Cut_Paste_Responses()
'
' Cut_Paste_Responses Macro
' Macro recorded 3/15/2004 by elizabeth.l.boal
'
'
Sheets("Questionnaire Response Capture").Select
Range("E4:BJ4").Select
Selection.Copy
Sheets("Questionnaire Response").Select
Range("D4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=True
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets("Segment").Select
Range("D2").Select
Selection.Copy
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Questionnaire Response Capture").Select
Range("BP4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets("Segment").Select
Range("F2").Select
Application.CutCopyMode = False
Selection.Copy
ActiveWindow.ScrollWorkbookTabs Position:=xlFirst
Sheets("Questionnaire Response Capture").Select
Range("BQ4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End
What I would like to do now is loop back through the formula so it takes the responses from the 2nd customer on tab 1, pastes them into tab 2, retrieves the segment result, and then pastes that result back next to customer 2's responses. Then do this same thing for 3, 4, 5,....8000. I can figure out how to loop the macro, but I don't know how to update the macro to tell it to skip to the next row every time and paste the result in that next row. Basically the macro above has to change for each customer.
I'm sorry if I didn't explain this well. Hope someone can help!
Liz