See attached error.
I am trying to pull historical stock data for STOCKHISTORY function, there are many places using the code STOCKHISTORY function.
I need to adjust the date range to pull different range of data, but instead of adjusting code in so many places, I would like to use two public variable StartDate and EndDate . Therefore, I only need to adjust these two variable each time when I made the change. For example, I may want to change StartDate to Today()-80 and change EndDate to Today()-15 next time.
How to define two date variable?
Thanks.
Bookmarks