So I have the following script in my macros:
Instead of $I6, I need to use Offset so I can call the cell needed (and use the formula in mulitple macros). I thought I should edit swap out $I6 with ActiveCell.Offset(1,-12).Value but it's not working. Here is my erroneous code that I'm trying to fix:
How do I change the code to use the Offset feature?
Thanks in advance.
Bruce
Code:
activecell.Formula = "= IF(LEFT($I6,2)=""17"",""CTRL+G"","""")
Instead of $I6, I need to use Offset so I can call the cell needed (and use the formula in mulitple macros). I thought I should edit swap out $I6 with ActiveCell.Offset(1,-12).Value but it's not working. Here is my erroneous code that I'm trying to fix:
Code:
ActiveCell.Formula = "= IF(LEFT(ActiveCell.Offset(1,-12).Value,2)=""17"",""CTRL+G"","""")"
How do I change the code to use the Offset feature?
Thanks in advance.
Bruce