nicolehalliday
Board Regular
- Joined
- May 19, 2010
- Messages
- 56
Hi,
I could really use some help with my code, I know it's simple but I've tried many variations with no success.
In cell EE1 there is a date which is just entered as "03/15/2011". In code, I'd like to enter the next date, "03/16/2011" in EF1. In excel I can simply write "=EE1+1" to return the date. My code looks like this:
For some reason it enters "='EE1' + 1" which returns #NAME?. Why are there brackets around the EE1? All my other variations turned out even worse... any help would be greatly appreciated, thanks!!!
I could really use some help with my code, I know it's simple but I've tried many variations with no success.
In cell EE1 there is a date which is just entered as "03/15/2011". In code, I'd like to enter the next date, "03/16/2011" in EF1. In excel I can simply write "=EE1+1" to return the date. My code looks like this:
Code:
Sheets("highs").Range("EF1").Select
ActiveCell.FormulaR1C1 = "=EE1 + 1"
For some reason it enters "='EE1' + 1" which returns #NAME?. Why are there brackets around the EE1? All my other variations turned out even worse... any help would be greatly appreciated, thanks!!!