Hi all,
I am new to these forums, and I confess new to the world of VBA programming.
I have what I think is a compatability issue between versions of excel. I would appreciate anyone advising me how to get round this issue.
I have written a procedure using excel 2011 that works perfectly, but does not run using excel 2003 or 2007. Basically I have narrowed down the problem to this one line:
DateToCompare = Workbooks(Tracker).Worksheets(Class).Range("M" & LoopCounter).Value
Where DateToCompare is set to a date variable and LoopCounter is set to an integer variable.
The contents of the cell in question is definitely a date value.
I can't remember the exact error, I'm now at home - I can't post from work as I work in a prison, but it's something along the lines of an invalid data type.
I just cannot figure it out and have come to the conclusion that it must be the wrong syntax for 2003/2007.
Can anyone help me?
Thanks,
T
Bookmarks