OK -- working on a macro that first copies a selected range from sheet one to sheet two. Then I want to average the rows and move the averaged numbers to (as values) to a specified location. I will then go back to sheet one and repeat this -- however when the number is moved to the specified location I want the macro to only paste in that location if the cell is blank -- if a value is already there, then go to the next cell in the row -- and repeat the procedure until a blank cell is found for pasting.
I have no problems getting macro to copy and past appropriately into sheet 2 then average -- but do not know how to do the vba code for finding the blank/empty cell.
e.g. Copy A6, past special as vale into A16 if empty, if not empty, go to A17, etc.
What is the VBA code to do this -- am using excel 2007 and 2010. Thanks for your help.
Bookmarks