Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Determining What Jobs Ready To Move to Production

Thanks Claud but I'm programmatically challenged and I'm not sure I
understand how this works. I copied it over to my sheet and ran it. But I
guess I wasn't tweaking it right. How does it work?

"Claud Balls" wrote in message
...
I've done something similar. I've made changes to my code to reflect
what you are trying to do, but you will probably have to tweak it to fit
your needs. Also, sheet names will be different.

Sub Make_sched()

Dim intCounter As Integer, intMoveTo As Integer
Dim intNumRows As Integer, intPart As Integer
Dim strMoveCond As String
intCounter = 2
intMoveTo = 2

Sheets("Today").Range("A1:I500").Clear
Sheets("Master").Range("A1:A7").Copy _
Destination:=Sheets("Today").Range("A1")
intNumRows = Worksheets("Master").Cells(500, 1).End(xlUp).Row + 1

While intCounter < intNumRows

If Sheets("Master").Cells(intCounter, "D").Value
Sheets("Master").Cells(intCounter, "C").Value Then
strMoveCond = "NO"
Else
strMoveCond = "YES"
End If 'Allows blank lines to be copied

If strMoveCond = "YES" Then
Sheets("Master").Select
Range(Cells(intCounter, "A"), Cells(intCounter, "E")).Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Today").Select
Range(Cells(intMoveTo, "A"), Cells(intMoveTo, "E")).Select
ActiveSheet.Paste

intMoveTo = intMoveTo + 1
End If

intCounter = intCounter + 1

Wend

Columns("A:E").AutoFit

Application.Goto Reference:=Worksheets("Today").Cells(1, 1)

End Sub


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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
READY BAR MrDodd Excel Discussion (Misc queries) 2 July 31st 08 05:54 PM
jobs Eddie McHale Excel Worksheet Functions 2 July 23rd 07 10:02 PM
Need help on my Jobs applied too SS John the Baptist Jr. Excel Discussion (Misc queries) 1 August 31st 06 12:06 AM
print jobs History of print jobs Excel Discussion (Misc queries) 3 June 16th 06 06:11 AM
Grouping Print Jobs SueDot Excel Programming 4 November 3rd 04 09:04 PM


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