Idea is to make a custom function which i will install as an addin which will have a single argument (date) and fetch from a custom list exchange rate on that date. Basicly a vlookup.
So far i have gotten this far:
Sheet "ExRate" contains two collumns, A collumn with a date B with Rate.Please Login or Register to view this content.
Problem is date format, usually im typing them with dots so 25.02.2017 but the exrate sheet uses 25/02/2017 format which this setup cannot compare. I have noticed that data-> text to collumns has xlMDYFormat. MDY Date which manually works great for converting between the two date styles, but i failed replicating it in vba.
How do i sanitize input so it can recognize 25.02.2017 as well as 25/02/2017 and also 25.2.2017?
My solution so far is to just apend a new list with various date formats, but i would like to do it in code.
Thanks in advance.
Bookmarks