Hello,
I know I'm going to show how amateur I am now but I can't seem to get it right. Code works fine if I use range up to 600 rows but I need to use more rows and so I need to set the range also 'as long' sort of thing. here is the code I have,
Any ideas?Code:Dim rngFilter As Range, i As Long i = 1000 Set rngFilter = Range("A10:U700" & Range("a" & Rows.Count).End(xlUp).Row) dDate = Date - 1 If Application.WorksheetFunction.CountIf(rngFilter.Columns(21), dDate) Then rngFilter.AutoFilter field:=21, Criteria1:=dDate ActiveWindow.ScrollColumn = 1 ActiveWindow.ScrollRow = 1 Else MsgBox ("There were no deliveries yesterday!" & vbNewLine & dDate), vbOKOnly, "No Deliveries!" End If Set rngFilter = Nothing i = 0
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839t UQl_92mvg
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg. 9isY3Ezhx4j9itQLuif26T
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg. 9irSL7x4Moh9itTRqL7dQh
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg. 9irLgSdeU3r9itU7zdnWHw
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg. 9iraombnLDb9itV80HDpXc
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg. 9is0FSoF2Wi9itWKEvGSSq
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
Bookmarks