jordanburch
Active Member
- Joined
- Jun 10, 2016
- Messages
- 440
- Office Version
- 2016
HI All,
I have the below. It seems like an east fix I just can figure out the syntax. Can anyone help?
Its the variable parts that wrong and I cant figure it out. I keep trying different combinations with the variable inside the formula but can get it right.
Any ideas?
Jordan
Range("h2:h10000").SpecialCells(xlCellTypeVisible).Formula = "=+IF(RC[-6]=""" & Right(ThisWorkbook.Worksheets("Variables").Range("A10").Value, 2) & "/" & Left(ThisWorkbook.Worksheets("Variables").Range("A10").Value, 3) & """ , RC[-1],(RC[-1]*-1))"
I have the below. It seems like an east fix I just can figure out the syntax. Can anyone help?
Its the variable parts that wrong and I cant figure it out. I keep trying different combinations with the variable inside the formula but can get it right.
Any ideas?
Jordan
Range("h2:h10000").SpecialCells(xlCellTypeVisible).Formula = "=+IF(RC[-6]=""" & Right(ThisWorkbook.Worksheets("Variables").Range("A10").Value, 2) & "/" & Left(ThisWorkbook.Worksheets("Variables").Range("A10").Value, 3) & """ , RC[-1],(RC[-1]*-1))"