Using VBS functions in charts