justforgroups
New Member
- Joined
- Mar 10, 2010
- Messages
- 26
Hi,
Is this code permissible in a custom add-in (XLA)?
It works fine when executed as VBA but as an add-in, it raises the error: Application-defined or object-defined error
Thks.
Is this code permissible in a custom add-in (XLA)?
Code:
For Each rngCell In Worksheets(gs_sheet).Cells(gl_last_row, gl_last_col)
If Trim(rngCell.Value) = "" Then
rngCell.Value = 0 "< ----- error in XLA here
End If
Next rngCell
It works fine when executed as VBA but as an add-in, it raises the error: Application-defined or object-defined error
Thks.