Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I would like to have VBA look through "worksheet A". If a cell in "worksheet A" meets a condition then copy, cut, and paste that row to "worksheet b". The hard part... is VBA has to somehow know that if cells a3-a10 are full then the new information has to be put in cell a11. Please help me by writing new code that addresses my problem or correct the flawed code below. Thank you. My current code is: ThisWorkbook.Sheets("worksheet a").Range("v3").Activate Do While IsEmpty(ActiveCell.Offset(0, -21)) = False If ActiveCell.Value = "x" Then ActiveCell.EntireRow.Cut (Sheets("Completed Jobs 2004").Range("a4000")) If IsEmpty(ActiveCell) Then ActiveCell.EntireRow.Delete ' this part of the loop does not work On Error Resume Next ThisWorkbook.Sheets("Completed Jobs 2004").Range("a3:a4000").Select Selection.SpecialCells(xlCellTypeBlanks).EntireRow .Delete ActiveSheet.UsedRange 'Ends the part of the loop that doesn't work ActiveCell.Offset(1, 0).Select Loop End Sub --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to paste phase and seperate into another cell by a symbol of. | Excel Worksheet Functions | |||
using 'paste link' into seperate tab | Excel Discussion (Misc queries) | |||
How do I have seperate headers for seperate pages in 1 worksheet? | Excel Discussion (Misc queries) | |||
Data in a seperate worksheet | Excel Discussion (Misc queries) | |||
Chart in seperate worksheet | Charts and Charting in Excel |