I am trying to determine why "Cells.Select" (which is used to select all the cells in a worksheet) will work in a macro but the exact same command will result in a Run-time error: 1004. Has the add-in been set up in correctly? Is there a difference in how the code is executed between running a macro vs running an add-in?
This also will apply to any command using "Cells" such as the following...
If Not IsEmpty(Cells(a, 1)) Then
Cells(a, 3) = Num
End If
Note that the value of Num is a valid integer but the point I'm trying to make here is that the actual cell value is not set to Num when the condition is TRUE.
Thank you in advance