Ошибка при запуске программы Python: com_error: (-2147023174, «Сервер RPC недоступен.», Нет, Нет)Python

Программы на Python
Anonymous
Ошибка при запуске программы Python: com_error: (-2147023174, «Сервер RPC недоступен.», Нет, Нет)

Сообщение Anonymous »

Я работаю с Excel, Python и Visio, и когда я запускаю этот простой код, я получаю сообщение об ошибке

Код: Выделить всё

com_error: (-2147023174, 'The RPC server is unavailable.', None, None)
Это код, который я использую:

Код: Выделить всё

for row in range(1,sheet3.nrows):
if sheet3.cell_value(row,13) == "":
continue
if currentDate in dateList:
x1 = sheet3.cell_value(row,14)
x2 = sheet3.cell_value(row,15)
y1 = sheet3.cell_value(row,16)
y2 = sheet3.cell_value(row,17)
x1new = x1 - .4
x2new = x2 - .4
borderColor = 0
borderType = 0
colorValue = sheet3.cell_value(9,10)
colorFunc(x1new,y1,x2new,y2)
shape.Cells('FillforegndTrans').FormulaU = sheet3.cell_value(7,10)
Кто-нибудь знает, как это исправить?

Вернуться в «Python»