MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Mar 30th, 2004, 01:14 PM   #1
ljknight
 
Join Date: Oct 2002
Posts: 52
Default If, Then, Copy, Paste, Next Loop

Hi Everyone!

I have a spreadsheet with survey results. One question has an "other" option. If the survey taker chose other, column P gets an "X" in it and what they filled in comes up in column Q.

So, I want to do the following: If P2 = "X", then offset 1 (to Q2), copy contents of Q2, paste over P2, else check P3 -- loop until P# is blank.

My columns will always be constant, but the row count depends on the number of survey responses received and I do not want to have to make adjustments manually for the fluctuation in row count.

ALSO, since I always want it ALL...after the loop is complete, I want to select all the rows and copy and append the copied rows to another worksheet which which will have all the results collected for the year on it. Since the number of rows can fluctuate month to month, how do I automatically select all the active rows in worksheet one, and how do I get them pasted to the next blank row in worksheet two?

Thank you!

Laura
ljknight is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 03:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.