«Невозможно установить свойство NumberFormat класса Range»
Этот код работает целую вечность. Я подумал, может быть, я случайно нажал клавишу, но я не могу ее видеть. Я вдруг получаю ошибку:
Unable to set the NumberFormat property of the Range class
в приведенном ниже коде:
Worksheets("Sheet1").Cells(y + k, x + j).Select
TempValue = Worksheets("Sheet1").Cells(y + k, x + j).Value
Worksheets("Sheet1").Cells(y + k, x + j).NumberFormat = "#,##0" //ERROR HERE
Worksheets("Sheet1").Cells(y + k, x + j).Value = TempValue