LearnVBA83
Board Regular
- Joined
- Dec 1, 2016
- Messages
- 122
- Office Version
- 365
- Platform
- Windows
Hi all,
I'm so excited to have joined Mr. Excel and this will be my first post! I'm very basic with VBA but want to learn so much more. I think I missed my calling not becoming a computer programmer, but accounting it is for now! In my company we have the weirdest month end calendar and I have a file saved on a local drive with all dates from 2015 to 2099 listed. Beside each date is the Fiscal Month (Oct-Sept) in a column Fiscal Period (1-12) in a column, Fiscal QTR (Q1 - Q4) in a column, and Fiscal Year. The file like I said is saved on the local drive and is probably 31,000 lines. Would it be possible to create a custom function using vba that would look up a date in our financial models and return the value from the list I have saved on my local drive? For instance in excel I would type =FYmonth(A1) with A1 being a date and it would lookup that date on the file saved on the local drive and return the month name. It would also be great for the macro to then copy and paste as values so i'm not having hidden links between files. I'm sure there are so many more efficient ways to do this but I wanted to start the conversation with this method I thought of.
Thanks,
breid
I'm so excited to have joined Mr. Excel and this will be my first post! I'm very basic with VBA but want to learn so much more. I think I missed my calling not becoming a computer programmer, but accounting it is for now! In my company we have the weirdest month end calendar and I have a file saved on a local drive with all dates from 2015 to 2099 listed. Beside each date is the Fiscal Month (Oct-Sept) in a column Fiscal Period (1-12) in a column, Fiscal QTR (Q1 - Q4) in a column, and Fiscal Year. The file like I said is saved on the local drive and is probably 31,000 lines. Would it be possible to create a custom function using vba that would look up a date in our financial models and return the value from the list I have saved on my local drive? For instance in excel I would type =FYmonth(A1) with A1 being a date and it would lookup that date on the file saved on the local drive and return the month name. It would also be great for the macro to then copy and paste as values so i'm not having hidden links between files. I'm sure there are so many more efficient ways to do this but I wanted to start the conversation with this method I thought of.
Thanks,
breid