Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cut and Paste to A Seperate Worksheet

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to paste phase and seperate into another cell by a symbol of. Heather 0123 Excel Worksheet Functions 1 May 11th 09 08:30 PM
using 'paste link' into seperate tab upsidedown_pw Excel Discussion (Misc queries) 4 May 9th 08 04:01 PM
How do I have seperate headers for seperate pages in 1 worksheet? JessicaDL Excel Discussion (Misc queries) 1 February 22nd 08 07:14 PM
Data in a seperate worksheet F.G. Excel Discussion (Misc queries) 2 January 14th 08 07:48 PM
Chart in seperate worksheet Jay Charts and Charting in Excel 3 October 19th 06 08:43 PM


All times are GMT +1. The time now is 07:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"