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: 6
Default Quite simple macro, but I can't seem to fix it...

I have a simple task that I want to write a macro for but I can't
seem to make it work.

I have two columns (A and B) like this.

A B
1 Estimated fall out
2 9000 5885
3 8000 8115
4 6500 8698

I want to compare the value on every row and do different things with
each row depending on their relation.

IF (A1B1) THEN

CUT ENTIRE ROW AND INSERT AT ROW 9

IF (ABS(A1-B1) < 100) THEN

DELETE ROW

ELSE

GOTO NEXT ROW UNTIL BLANK

I hope you get the pseudo. I guess a loop would be in order. Something
like this perhaps.

X=2
Do until Cells(x, 1).Value = ""
VBA-CODE..
X=X+1
Loop

Would be very grateful for any help!

 
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
Simple Macro help? The Message Excel Discussion (Misc queries) 2 December 14th 09 05:14 PM
Help with simple macro Sam Commar Excel Discussion (Misc queries) 3 April 15th 08 04:30 PM
Need Help With A Very Simple Macro Amca Excel Discussion (Misc queries) 3 May 7th 05 12:10 AM
Simple Macro IMO Pitbull Excel Programming 2 October 30th 04 01:20 AM
Simple Macro Help Adam :: Oregon, USA Excel Programming 5 October 22nd 04 12:18 AM


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