Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Check variance code not working


Thanks Tom
Unfortunatley still not working

Seems like 2 issues:

1. Loop should stop when empty cell found in col O
Currently I have row 2 6011.001
row 3 6011.002

That is all the test data so should terminate after 2 iterations
It does not.

2. $M$12 is not updating
First iteration should = 6011.001
Second should = 6011.002

However the printouts still have the beginning account
number of 6410.0120

TIA
-gos

--
gos

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Check variance code not working

Sub Check_Next()
with worksheets("Accnt_Compare")
set rng = .Range(.Cells(2,"O"),.Cells(rows.count,"O").end(xl up)
for each cell in rng
.Range("M12").Value = cell.Value ' M12 or M2?
Application.Calculate
If Val(.Cells(23, 8)) 19.99 Then
Call Print_Job
End if
Next
end with
end Sub

--
Regards,
Tom Ogilvy


"goss" wrote in message
...

Thanks Tom
Unfortunatley still not working

Seems like 2 issues:

1. Loop should stop when empty cell found in col O
Currently I have row 2 6011.001
row 3 6011.002

That is all the test data so should terminate after 2 iterations
It does not.

2. $M$12 is not updating
First iteration should = 6011.001
Second should = 6011.002

However the printouts still have the beginning account
number of 6410.0120

TIA
-goss


--
goss


------------------------------------------------------------------------
goss's Profile:

http://www.excelforum.com/member.php...fo&userid=4602
View this thread: http://www.excelforum.com/showthread...hreadid=265174



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
Check box not working out for me.. why? TG Excel Discussion (Misc queries) 5 June 24th 09 11:36 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
Check variance code not working goss[_33_] Excel Programming 1 September 30th 04 08:11 PM


All times are GMT +1. The time now is 10:23 AM.

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"