citroendealer
New Member
- Joined
- Sep 27, 2016
- Messages
- 13
This is a simplification of my problem. A1 has a number and B1 is selected. When I run this code it results in an error, why?
Code:
Sub test()
Dim x As Single
x = 0.5
ActiveCell.FormulaR1C1 = "=RC[-1]*" & x
End Sub