winstela
New Member
- Joined
- Feb 24, 2019
- Messages
- 28
- Office Version
- 2016
- Platform
- Windows
Hi All,
I am trying to add a formula in VBA that works in an excel sheet but not when I use the same formula in VBA
I am trying to combine cell value AC2 and AC1 separated with a dash and copy this to the last column
But I keep getting Runtime error 13 Type mismatch
Excel formula I am using
Any ideas where I am going wrong?
Thank you
I am trying to add a formula in VBA that works in an excel sheet but not when I use the same formula in VBA
I am trying to combine cell value AC2 and AC1 separated with a dash and copy this to the last column
But I keep getting Runtime error 13 Type mismatch
VBA Code:
Range("AC3:BB3").Formula = "=AC2&" - "&AC1"
Excel formula I am using
Excel Formula:
=AC2&"-"&AC1
Any ideas where I am going wrong?
Thank you