LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default One more macro

I have a worksheet. Starting in row 21, I want it to see if the entry in
column A is a number. If it is, I want it to go down one row and try again,
i.e., test cell A22 to see if it is a number. If cell A21 is not a number,
I want it to delete that entire row and then look at the entry in the new
cell A21. If I have to put a maximum on it, I'd say there will not be more
than 600 rows to test.

When it is done with this, I would like it to highlight the block from cell
A21 to the last row in column E. I would then like it to sort that block of
data by the column B entry, in ascending order. I would then like to copy
all data from cell A1 (the top left corner) down to the bottom right corner
of that same block and have it paste it into another file of my choice,
starting at its cell A1 of one or two worksheets. It would be pasted into
one of two worksheets, either BOPCompHldgs or EOPCompHldgs, so I would need
it to ask me which of the two sheets I want to paste into.

There's a few other things after that, but I think I can handle that myself
from the other stuff I've learned. Kindly help.

Grace


 
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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
How to end macro on inital active worksheet containing macro button that was clicked Silverhawk1 Excel Programming 2 May 14th 04 03:58 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


All times are GMT +1. The time now is 02:08 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"