i keep getting this error when i am tring to call this function
UserRowCounter = UserStartRow
While Worksheets("Log-Import").Cells(UserRowCounter, UserStartCol) <> ""
UserRowCounter = UserRowCounter + 1
totalitems = UserRowCounter
'function to be the do all end all find logoff for each coresponding logon.
itemcount = 0
For counter = 1 To totalitems
If LogCol = "logoff" Then
If UsernameCol = username Then
If DayCol = UserDayCol Then
Worksheet(username).Cells(userrow, UserLogoffCol).Value = Worksheets("log-import").Cells(logrow, LogCol).Value
itemcount = itemcount + 1
If itemcount = 0 Then
MsgBox "there were no logoffs found for & username & on that day. would you like to continue."
'Call a logoff function here
please help this is the last thing i need i promise