I have a simple Macro that has been working for months and now all of the sudden its broken when I reformatted (clue but I cant figure it out). I know the problem center around the offset function, which seems to have some problems.
I would like to use something else (Cells) but I cant figure out how.
Specifically, I have a Range that I am checking through and altering nearby cells.
Is there a way to do something like this with 'Cells'
Dim x As Variant
x = Worksheets("Book1").Range("A131")
If (x = some value And x>0) Then
x.Offset(0,7).Value = some value
End if
now excel is showing me an error that Object is required
(x = some valuewould be error-prone sincesome valueis 2 words... Please be more explicit in your code sample so we can more easily determine where the problem is...