Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Appreciate that.

  2. #17
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I am not seeing any problems. It returned 28 for me.
    Let's try qualifying the sheet name. I realize that your sheet name may change, but just test it with this. If it is on the wrong file or sheet, it should give you errors. That will tell us that the macro is not running where your think it is.

    Code:
        lastRow = Sheets("UUTS_17300130").Cells(Rows.Count, "A").End(xlUp).Row
        MsgBox lastRow

  3. #18
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    It does give 28 with that code. #ill do some testing.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Find Avg based on Date Range
    By mpaulbattle in forum Queries
    Replies: 6
    Last Post: 11-22-2016, 03:06 PM
  2. Replies: 7
    Last Post: 04-21-2014, 12:26 PM
  3. Message Box Based on Date Range
    By MSAccessOldTimer in forum Programming
    Replies: 4
    Last Post: 05-14-2012, 04:25 PM
  4. SUM based on date range in query builder
    By tjstromquist in forum Queries
    Replies: 1
    Last Post: 04-04-2012, 09:07 AM
  5. joins based on date range
    By broecher in forum Database Design
    Replies: 4
    Last Post: 11-04-2011, 06:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums