ROBINSON_US
New Member
- Joined
- Feb 27, 2006
- Messages
- 25
I have this line of code, which adds a title to a report I've created:
ActiveCell.FormulaR1C1 = "ABC COMPANY INC. - SALES COMMISSION REPORT FOR JULY 2017"
Works great, but as each month goes by, I'd like to not have to go into the code and change the name of the month. Plus, when I do the reports, I'm in the next month (I'm doing July's reports in August, etc.) So, is there something that could look like:
ActiveCell.FormulaR1C1 = "ABC COMPANY INC. - SALES COMMISSION REPORT FOR " (plus code to add previous month's name)?
Thanks
ActiveCell.FormulaR1C1 = "ABC COMPANY INC. - SALES COMMISSION REPORT FOR JULY 2017"
Works great, but as each month goes by, I'd like to not have to go into the code and change the name of the month. Plus, when I do the reports, I'm in the next month (I'm doing July's reports in August, etc.) So, is there something that could look like:
ActiveCell.FormulaR1C1 = "ABC COMPANY INC. - SALES COMMISSION REPORT FOR " (plus code to add previous month's name)?
Thanks