The code below works fine starting the macro from sheet1 but starting the macro from another sheet I get an error message.
[red]methode "range" of object "_worksheet" failed[/red]
How to change the code to get the macro working from any sheet in the workbook ?
[red]methode "range" of object "_worksheet" failed[/red]
Code:
For Each cell In Sheet1.Range(Cells(x, 2), Cells(x, 30))
How to change the code to get the macro working from any sheet in the workbook ?