I have the following code below to copy and paste data as vaklues onm all sheetd
However, when running the code, I get a run time error "Application-defined or object defined error"
The code below is highlighted
It would be appreciated if someone could kindly amend my code
Code:
Sub convertAllSheetstoValues()
For Each ws In ThisWorkbook.Worksheets
ws.UsedRange.Value = ws.UsedRange.Value
Next
End Sub
However, when running the code, I get a run time error "Application-defined or object defined error"
The code below is highlighted
Code:
ws.UsedRange.Value = ws.UsedRange.Value
It would be appreciated if someone could kindly amend my code