My starting point for all calculations is B6
Part of my macro is
What I'm having a difficult time with is adding days to H2 or to test1. I thought it would be as easy as
[H3] = test1 +2 or
[H3] = Range("B6") + 2 or
[H3] = Range("H2") + 2
Book1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | |||
2 | Tuesday, November 30 | |||||||||
3 | #VALUE! | H2 + 2 | ||||||||
4 | #VALUE! | H3 + 5 | ||||||||
5 | #VALUE! | H4 + 2 | ||||||||
6 | 11/30/2021 10:00:00 AM | |||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H3,H5 | H3 | =H2+2 |
H4 | H4 | =H3+5 |
Part of my macro is
VBA Code:
test1 = Format([B6], "dddd, mmmm d")
[H2] = test1
What I'm having a difficult time with is adding days to H2 or to test1. I thought it would be as easy as
[H3] = test1 +2 or
[H3] = Range("B6") + 2 or
[H3] = Range("H2") + 2