Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello
It gives an error when executing the following commands except for the last sheet. where is the problem from?
Dim SheetNum, ProjectNum As Integer
For SheetNum = Sheets.Count To 1 Step -1
With Sheets(SheetNum)
Co = WorksheetFunction.Match(ProjectNum,.Rows(1))
.Activate
.Range(Columns(Co - 3), Columns(Co)).Delete
End With
Next Sh
Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
where is the problem from?
The question is more, which detailed error message do you get, in whcih line and what is "WorksheetFunction.Match(ProjectNum,.Rows(1))"
You have to provide more details.