I've been banging on this for a month. I had it working on a template using dates from December and then we updated the dates for January and it's not working. Here's where I'm having trouble:
Because I was having trouble finding the phrase 12/17/2013 (which was actually a formula and even specifying Lookin:=xlValues didn't work), I have hidden rows that display the dates as their date serials. This works great for other parts of the macro that need to find the dates. However, at those points the dates are being grabbed from a listbox which seems to be giving it to the variable holder as the serial number. This bit of code above is happening before the listbox is populated, so the dates are strings. How do I get the macro to convert those strings to the serials?Please Login or Register to view this content.
I found two different articles that said I should be able to use DATEVALUE but so far that doesn't seem to be working, either in the macro or in the worksheet as a formula. It seems to just return whatever it gets: 12/17/2013 in, "12/17/2013" out.
TechOnTheNet article
office.microsoft.com article
TIA,
ama
Bookmarks