Why Error1004: unable to set the NumberFormat property of the Range class?
问题 Why do I get Error1004: unable to set the NumberFormat property of the Range class? Sub ReadFile(fileName As String) Dim projectWb As Workbook Dim lastRow As Long Dim lastRowOutput As Long Dim row As Long Application.ScreenUpdating = False Set projectWb = Workbooks.Open(Range("folderPath") & fileName, False) lastRow = projectWb.Sheets("Beställningar").Cells.Find("*", [A1], xlValues, , xlByRows, xlPrevious).row For row = 64 To lastRow lastRowOutput = ThisWorkbook.Sheets("Output").Cells.Find("*