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: 1
Default Check variance code not working


Hi ng.
Using xl 2003.

I have sheet that uses vlookups and formulas to determin variance
between 2 sets of data for a given list of accounts

Accounts fluctuate and start at O2 going down
As go down list, new account should update to M2
C2:C21 are linked to $M$2 to get account number to perform lookups

Not working:
The account number is not updating in Col C Probably not updating at M
either
For all I know loop is next executing casuing cell reference to go dow
list
'til 0 val found.

Appreciate any help
TIA goss

my code:

Sub Check_Next()

Dim i As Double
Dim x As Integer

Application.ScreenUpdating = False
ActiveWorkbook.Worksheets("Accnt_Compare").Activat e
Range("O2").Activate

x = 0
i = 0
i = ActiveCell.Value

Do While i < 0
If ActiveCell.Value = 0 Then
Exit Sub
Else
If Val(Cells(23, 8)) 19.99 Then
Call Print_Job
Else
x = x + 1
Range("O2").Activate
ActiveCell.Offset(x, 0).Select
i = ActiveCell.Value
Cells(2, 12) = ActiveCell.Value
Application.Calculate
End If
End If
Loop
Application.ScreenUpdating = True

End Su

--
gos

-----------------------------------------------------------------------
goss's Profile: http://www.excelforum.com/member.php...nfo&userid=460
View this thread: http://www.excelforum.com/showthread.php?threadid=26517

 
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
Check box not working out for me.. why? TG Excel Discussion (Misc queries) 5 June 24th 09 11:36 PM
Check Box not working HR Sam Excel Discussion (Misc queries) 1 October 20th 08 10:27 PM
Check Box Not working? Anand vijay New Users to Excel 3 January 6th 07 03:34 AM
Pivot Tables - Variance and Variance % PJS Excel Discussion (Misc queries) 2 January 18th 06 03:12 AM
Pivot Tables - Variance and % Variance fields CraigS Excel Discussion (Misc queries) 5 January 6th 05 12:22 AM


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